Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Functions | |
_zip_crypto_aes_t * | _zip_crypto_aes_new (const zip_uint8_t *key, zip_uint16_t key_size, zip_error_t *error) |
bool | _zip_crypto_aes_encrypt_block (_zip_crypto_aes_t *aes, const zip_uint8_t *in, zip_uint8_t *out) |
void | _zip_crypto_aes_free (_zip_crypto_aes_t *aes) |
_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) |
ZIP_EXTERN bool | zip_secure_random (zip_uint8_t *buffer, zip_uint16_t length) |
bool _zip_crypto_aes_encrypt_block | ( | _zip_crypto_aes_t * | aes, |
const zip_uint8_t * | in, | ||
zip_uint8_t * | out | ||
) |
Definition at line 71 of file zip_crypto_gnutls.c.
References _zip_crypto_aes_t::ctx, _zip_crypto_aes_t::ctx_128, _zip_crypto_aes_t::ctx_192, _zip_crypto_aes_t::ctx_256, in, _zip_crypto_aes_t::key_size, nettle_aes128_encrypt(), nettle_aes192_encrypt(), nettle_aes256_encrypt(), 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 41 of file zip_crypto_gnutls.c.
References _zip_crypto_aes_t::ctx, _zip_crypto_aes_t::ctx_128, _zip_crypto_aes_t::ctx_192, _zip_crypto_aes_t::ctx_256, error(), free(), key, _zip_crypto_aes_t::key_size, malloc(), nettle_aes128_set_encrypt_key(), nettle_aes192_set_encrypt_key(), nettle_aes256_set_encrypt_key(), NULL, ZIP_ER_INVAL, ZIP_ER_MEMORY, and zip_error_set().
void _zip_crypto_hmac_free | ( | _zip_crypto_hmac_t * | hmac | ) |
Definition at line 118 of file zip_crypto_gnutls.c.
References _zip_crypto_clear, free(), NULL, and ZIP_CRYPTO_SHA1_LENGTH.
_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_gnutls.c.
References error(), free(), malloc(), NULL, ZIP_ER_INTERNAL, ZIP_ER_MEMORY, and zip_error_set().
ZIP_EXTERN bool zip_secure_random | ( | zip_uint8_t * | buffer, |
zip_uint16_t | length | ||
) |
Definition at line 132 of file zip_crypto_gnutls.c.
References length.
Referenced by encrypt_header(), and main().