Rizin
unix-like reverse engineering framework and cli tools
|
#include <nettle/aes.h>
#include <nettle/pbkdf2.h>
#include <gnutls/gnutls.h>
#include <gnutls/crypto.h>
Go to the source code of this file.
Classes | |
struct | _zip_crypto_aes_t |
Macros | |
#define | HAVE_SECURE_RANDOM |
#define | _zip_crypto_hmac_t gnutls_hmac_hd_t |
#define | _zip_crypto_hmac(hmac, data, length) (gnutls_hmac(*(hmac), (data), (length)) == 0) |
#define | _zip_crypto_hmac_output(hmac, data) (gnutls_hmac_output(*(hmac), (data)), true) |
#define | _zip_crypto_pbkdf2(key, key_length, salt, salt_length, iterations, output, output_length) (pbkdf2_hmac_sha1((key_length), (key), (iterations), (salt_length), (salt), (output_length), (output)), true) |
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) |
Definition at line 61 of file zip_crypto_gnutls.h.
#define _zip_crypto_hmac_output | ( | hmac, | |
data | |||
) | (gnutls_hmac_output(*(hmac), (data)), true) |
Definition at line 64 of file zip_crypto_gnutls.h.
#define _zip_crypto_hmac_t gnutls_hmac_hd_t |
Definition at line 55 of file zip_crypto_gnutls.h.
#define _zip_crypto_pbkdf2 | ( | key, | |
key_length, | |||
salt, | |||
salt_length, | |||
iterations, | |||
output, | |||
output_length | |||
) | (pbkdf2_hmac_sha1((key_length), (key), (iterations), (salt_length), (salt), (output_length), (output)), true) |
Definition at line 66 of file zip_crypto_gnutls.h.
#define HAVE_SECURE_RANDOM |
Definition at line 37 of file zip_crypto_gnutls.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.