mz_crypt.h   mz_crypt.h 
skipping to change at line 33 skipping to change at line 33
int32_t salt_length, uint32_t iteration_count, uint8_t *key, ui nt16_t key_length); int32_t salt_length, uint32_t iteration_count, uint8_t *key, ui nt16_t key_length);
/************************************************************************** */ /************************************************************************** */
int32_t mz_crypt_rand(uint8_t *buf, int32_t size); int32_t mz_crypt_rand(uint8_t *buf, int32_t size);
void mz_crypt_sha_reset(void *handle); void mz_crypt_sha_reset(void *handle);
int32_t mz_crypt_sha_begin(void *handle); int32_t mz_crypt_sha_begin(void *handle);
int32_t mz_crypt_sha_update(void *handle, const void *buf, int32_t size); int32_t mz_crypt_sha_update(void *handle, const void *buf, int32_t size);
int32_t mz_crypt_sha_end(void *handle, uint8_t *digest, int32_t digest_siz e); int32_t mz_crypt_sha_end(void *handle, uint8_t *digest, int32_t digest_siz e);
void mz_crypt_sha_set_algorithm(void *handle, uint16_t algorithm); int32_t mz_crypt_sha_set_algorithm(void *handle, uint16_t algorithm);
void* mz_crypt_sha_create(void **handle); void* mz_crypt_sha_create(void);
void mz_crypt_sha_delete(void **handle); void mz_crypt_sha_delete(void **handle);
void mz_crypt_aes_reset(void *handle); void mz_crypt_aes_reset(void *handle);
int32_t mz_crypt_aes_encrypt(void *handle, uint8_t *buf, int32_t size); int32_t mz_crypt_aes_encrypt(void *handle, const void *aad, int32_t aad_si
int32_t mz_crypt_aes_decrypt(void *handle, uint8_t *buf, int32_t size); ze, uint8_t *buf, int32_t size);
int32_t mz_crypt_aes_set_encrypt_key(void *handle, const void *key, int32_ int32_t mz_crypt_aes_encrypt_final(void *handle, uint8_t *buf, int32_t siz
t key_length); e, uint8_t *tag, int32_t tag_size);
int32_t mz_crypt_aes_set_decrypt_key(void *handle, const void *key, int32_ int32_t mz_crypt_aes_decrypt(void *handle, const void *aad, int32_t aad_si
t key_length); ze, uint8_t *buf, int32_t size);
int32_t mz_crypt_aes_decrypt_final(void *handle, uint8_t *buf, int32_t siz
e, const uint8_t *tag, int32_t tag_size);
int32_t mz_crypt_aes_set_encrypt_key(void *handle, const void *key, int32_
t key_length,
const void *iv, int32_t iv_length);
int32_t mz_crypt_aes_set_decrypt_key(void *handle, const void *key, int32_
t key_length,
const void *iv, int32_t iv_length);
void mz_crypt_aes_set_mode(void *handle, int32_t mode); void mz_crypt_aes_set_mode(void *handle, int32_t mode);
void* mz_crypt_aes_create(void **handle); void* mz_crypt_aes_create(void);
void mz_crypt_aes_delete(void **handle); void mz_crypt_aes_delete(void **handle);
void mz_crypt_hmac_reset(void *handle); void mz_crypt_hmac_reset(void *handle);
int32_t mz_crypt_hmac_init(void *handle, const void *key, int32_t key_leng th); int32_t mz_crypt_hmac_init(void *handle, const void *key, int32_t key_leng th);
int32_t mz_crypt_hmac_update(void *handle, const void *buf, int32_t size); int32_t mz_crypt_hmac_update(void *handle, const void *buf, int32_t size);
int32_t mz_crypt_hmac_end(void *handle, uint8_t *digest, int32_t digest_si ze); int32_t mz_crypt_hmac_end(void *handle, uint8_t *digest, int32_t digest_si ze);
int32_t mz_crypt_hmac_copy(void *src_handle, void *target_handle); int32_t mz_crypt_hmac_copy(void *src_handle, void *target_handle);
void mz_crypt_hmac_set_algorithm(void *handle, uint16_t algorithm); void mz_crypt_hmac_set_algorithm(void *handle, uint16_t algorithm);
void* mz_crypt_hmac_create(void **handle); void* mz_crypt_hmac_create(void);
void mz_crypt_hmac_delete(void **handle); void mz_crypt_hmac_delete(void **handle);
int32_t mz_crypt_sign(uint8_t *message, int32_t message_size, uint8_t *cer
t_data, int32_t cert_data_size,
const char *cert_pwd, uint8_t **signature, int32_t *signature_s
ize);
int32_t mz_crypt_sign_verify(uint8_t *message, int32_t message_size, uint8
_t *signature, int32_t signature_size);
/************************************************************************** */ /************************************************************************** */
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif #endif
 End of changes. 5 change blocks. 
17 lines changed or deleted 18 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/