|
Rizin
unix-like reverse engineering framework and cli tools
|
#include <stdlib.h>#include "zipint.h"#include "zip_crypto.h"#include <limits.h>#include <openssl/rand.h>Go to the source code of this file.
Macros | |
| #define | USE_OPENSSL_1_0_API |
Functions | |
| _zip_crypto_aes_t * | _zip_crypto_aes_new (const zip_uint8_t *key, zip_uint16_t key_size, zip_error_t *error) |
| void | _zip_crypto_aes_free (_zip_crypto_aes_t *aes) |
| bool | _zip_crypto_aes_encrypt_block (_zip_crypto_aes_t *aes, const zip_uint8_t *in, zip_uint8_t *out) |
| _zip_crypto_hmac_t * | _zip_crypto_hmac_new (const zip_uint8_t *secret, zip_uint64_t secret_length, zip_error_t *error) |
| void | _zip_crypto_hmac_free (_zip_crypto_hmac_t *hmac) |
| bool | _zip_crypto_hmac_output (_zip_crypto_hmac_t *hmac, zip_uint8_t *data) |
| ZIP_EXTERN bool | zip_secure_random (zip_uint8_t *buffer, zip_uint16_t length) |
| #define USE_OPENSSL_1_0_API |
Definition at line 44 of file zip_crypto_openssl.c.
| bool _zip_crypto_aes_encrypt_block | ( | _zip_crypto_aes_t * | aes, |
| const zip_uint8_t * | in, | ||
| zip_uint8_t * | out | ||
| ) |
Definition at line 111 of file zip_crypto_openssl.c.
References in, len, out, and ZIP_CRYPTO_AES_BLOCK_LENGTH.
| void _zip_crypto_aes_free | ( | _zip_crypto_aes_t * | aes | ) |
| _zip_crypto_aes_t* _zip_crypto_aes_new | ( | const zip_uint8_t * | key, |
| zip_uint16_t | key_size, | ||
| zip_error_t * | error | ||
| ) |
Definition at line 49 of file zip_crypto_openssl.c.
References error(), free(), key, malloc(), memset(), NULL, ZIP_ER_INTERNAL, ZIP_ER_MEMORY, and zip_error_set().
| void _zip_crypto_hmac_free | ( | _zip_crypto_hmac_t * | hmac | ) |
Definition at line 158 of file zip_crypto_openssl.c.
References _zip_crypto_clear, free(), and NULL.
| _zip_crypto_hmac_t* _zip_crypto_hmac_new | ( | const zip_uint8_t * | secret, |
| zip_uint64_t | secret_length, | ||
| zip_error_t * | error | ||
| ) |
Definition at line 121 of file zip_crypto_openssl.c.
References error(), free(), INT_MAX, malloc(), NULL, ZIP_ER_INTERNAL, ZIP_ER_INVAL, ZIP_ER_MEMORY, and zip_error_set().
| bool _zip_crypto_hmac_output | ( | _zip_crypto_hmac_t * | hmac, |
| zip_uint8_t * | data | ||
| ) |
Definition at line 174 of file zip_crypto_openssl.c.
References length.
| ZIP_EXTERN bool zip_secure_random | ( | zip_uint8_t * | buffer, |
| zip_uint16_t | length | ||
| ) |
Definition at line 182 of file zip_crypto_openssl.c.
References length.