Rizin
unix-like reverse engineering framework and cli tools
|
#include <stdlib.h>
#include "zipint.h"
#include "zip_crypto.h"
#include <fcntl.h>
#include <unistd.h>
Go to the source code of this file.
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_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.
References in, len, out, and ZIP_CRYPTO_AES_BLOCK_LENGTH.
void _zip_crypto_aes_free | ( | _zip_crypto_aes_t * | aes | ) |
Definition at line 44 of file zip_crypto_commoncrypto.c.
References NULL.
Referenced by _zip_winzip_aes_free(), and _zip_winzip_aes_new().
_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.
References error(), key, NULL, ZIP_ER_INTERNAL, ZIP_ER_INVAL, ZIP_ER_MEMORY, and zip_error_set().
Referenced by _zip_winzip_aes_new().
void _zip_crypto_hmac_free | ( | _zip_crypto_hmac_t * | hmac | ) |
Definition at line 88 of file zip_crypto_commoncrypto.c.
References _zip_crypto_clear, free(), and NULL.
Referenced by _zip_winzip_aes_free().
_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.
References error(), malloc(), NULL, ZIP_ER_MEMORY, and zip_error_set().
Referenced by _zip_winzip_aes_new().