Rizin
unix-like reverse engineering framework and cli tools
|
#include <CommonCrypto/CommonCrypto.h>
Go to the source code of this file.
Macros | |
#define | _zip_crypto_aes_t struct _CCCryptor |
#define | _zip_crypto_hmac_t CCHmacContext |
#define | _zip_crypto_hmac(hmac, data, length) (CCHmacUpdate((hmac), (data), (length)), true) |
#define | _zip_crypto_hmac_output(hmac, data) (CCHmacFinal((hmac), (data)), true) |
#define | _zip_crypto_pbkdf2(key, key_length, salt, salt_length, iterations, output, output_length) (CCKeyDerivationPBKDF(kCCPBKDF2, (const char *)(key), (key_length), (salt), (salt_length), kCCPRFHmacAlgSHA1, (iterations), (output), (output_length)) == kCCSuccess) |
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) |
#define _zip_crypto_aes_t struct _CCCryptor |
Definition at line 39 of file zip_crypto_commoncrypto.h.
Definition at line 46 of file zip_crypto_commoncrypto.h.
#define _zip_crypto_hmac_output | ( | hmac, | |
data | |||
) | (CCHmacFinal((hmac), (data)), true) |
Definition at line 49 of file zip_crypto_commoncrypto.h.
#define _zip_crypto_hmac_t CCHmacContext |
Definition at line 40 of file zip_crypto_commoncrypto.h.
#define _zip_crypto_pbkdf2 | ( | key, | |
key_length, | |||
salt, | |||
salt_length, | |||
iterations, | |||
output, | |||
output_length | |||
) | (CCKeyDerivationPBKDF(kCCPBKDF2, (const char *)(key), (key_length), (salt), (salt_length), kCCPRFHmacAlgSHA1, (iterations), (output), (output_length)) == kCCSuccess) |
Definition at line 51 of file zip_crypto_commoncrypto.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.