|
Rizin
unix-like reverse engineering framework and cli tools
|
#include <openssl/evp.h>#include <openssl/hmac.h>Go to the source code of this file.
Macros | |
| #define | HAVE_SECURE_RANDOM |
| #define | _zip_crypto_aes_t EVP_CIPHER_CTX |
| #define | _zip_crypto_hmac_t HMAC_CTX |
| #define | _zip_crypto_hmac(hmac, data, length) (HMAC_Update((hmac), (data), (length)) == 1) |
| #define | _zip_crypto_pbkdf2(key, key_length, salt, salt_length, iterations, output, output_length) (PKCS5_PBKDF2_HMAC_SHA1((const char *)(key), (key_length), (salt), (salt_length), (iterations), (output_length), (output))) |
Functions | |
| 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_aes_t * | _zip_crypto_aes_new (const zip_uint8_t *key, zip_uint16_t key_size, zip_error_t *error) |
| void | _zip_crypto_hmac_free (_zip_crypto_hmac_t *hmac) |
| _zip_crypto_hmac_t * | _zip_crypto_hmac_new (const zip_uint8_t *secret, zip_uint64_t secret_length, zip_error_t *error) |
| bool | _zip_crypto_hmac_output (_zip_crypto_hmac_t *hmac, zip_uint8_t *data) |
| #define _zip_crypto_aes_t EVP_CIPHER_CTX |
Definition at line 42 of file zip_crypto_openssl.h.
Definition at line 49 of file zip_crypto_openssl.h.
| #define _zip_crypto_hmac_t HMAC_CTX |
Definition at line 43 of file zip_crypto_openssl.h.
| #define _zip_crypto_pbkdf2 | ( | key, | |
| key_length, | |||
| salt, | |||
| salt_length, | |||
| iterations, | |||
| output, | |||
| output_length | |||
| ) | (PKCS5_PBKDF2_HMAC_SHA1((const char *)(key), (key_length), (salt), (salt_length), (iterations), (output_length), (output))) |
Definition at line 54 of file zip_crypto_openssl.h.
| #define HAVE_SECURE_RANDOM |
Definition at line 37 of file zip_crypto_openssl.h.
| bool _zip_crypto_aes_encrypt_block | ( | _zip_crypto_aes_t * | aes, |
| const zip_uint8_t * | in, | ||
| zip_uint8_t * | out | ||
| ) |
Definition at line 54 of file zip_crypto_commoncrypto.c.
| void _zip_crypto_aes_free | ( | _zip_crypto_aes_t * | aes | ) |
Definition at line 44 of file zip_crypto_commoncrypto.c.
| _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 62 of file zip_crypto_commoncrypto.c.
| void _zip_crypto_hmac_free | ( | _zip_crypto_hmac_t * | hmac | ) |
Definition at line 88 of file zip_crypto_commoncrypto.c.
| _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 99 of file zip_crypto_commoncrypto.c.
| bool _zip_crypto_hmac_output | ( | _zip_crypto_hmac_t * | hmac, |
| zip_uint8_t * | data | ||
| ) |
Definition at line 174 of file zip_crypto_openssl.c.