Functions | |
long | aes_ccm_decrypt (const unsigned char *key, const unsigned char *nonce, const unsigned char *adata, unsigned long adata_len, const unsigned char *ciphermic, signed long ciphermic_len, int mic_len, unsigned char *outbuf) |
long | aes_ccm_encrypt (const unsigned char *key, const unsigned char *nonce, const unsigned char *adata, unsigned long adata_len, const unsigned char *payload, unsigned long payload_len, int mic_len, unsigned char *outbuf) |
int | aes_ccm_verify (const unsigned char *key, const unsigned char *nonce, const unsigned char *adata, unsigned long adata_len, const unsigned char *ciphermic, unsigned long ciphermic_len, int mic_len) |
long aes_ccm_decrypt | ( | const unsigned char * | key, |
const unsigned char * | nonce, | ||
const unsigned char * | adata, | ||
unsigned long | adata_len, | ||
const unsigned char * | ciphermic, | ||
signed long | ciphermic_len, | ||
int | mic_len, | ||
unsigned char * | outbuf | ||
) |
References cbcmac_calc(), ctr_mic(), ctr_payload(), i, and PRINTF.
Referenced by netstack_aes_decrypt().
long aes_ccm_encrypt | ( | const unsigned char * | key, |
const unsigned char * | nonce, | ||
const unsigned char * | adata, | ||
unsigned long | adata_len, | ||
const unsigned char * | payload, | ||
unsigned long | payload_len, | ||
int | mic_len, | ||
unsigned char * | outbuf | ||
) |
References cbcmac_calc(), ctr_mic(), ctr_payload(), i, and PRINTF.
Referenced by netstack_aes_encrypt().
int aes_ccm_verify | ( | const unsigned char * | key, |
const unsigned char * | nonce, | ||
const unsigned char * | adata, | ||
unsigned long | adata_len, | ||
const unsigned char * | ciphermic, | ||
unsigned long | ciphermic_len, | ||
int | mic_len | ||
) |
References cbcmac_verify(), ctr_mic(), i, and PRINTF.
Referenced by netstack_aes_verify().