Searched refs:DTLS_CCM_BLOCKSIZE (Results 1 – 4 of 4) sorted by relevance
/net-tools-3.5.0/tinydtls-0.8.2/ |
D | ccm.c | 43 memset((A) + DTLS_CCM_BLOCKSIZE - (L), 0, (L)); \ 45 for (i = DTLS_CCM_BLOCKSIZE - 1; (C) && (i > (L)); --i, (C) >>= 8) \ 54 unsigned char nonce[DTLS_CCM_BLOCKSIZE], in block0() argument 61 memcpy(result + 1, nonce, DTLS_CCM_BLOCKSIZE - L); in block0() 85 unsigned char B[DTLS_CCM_BLOCKSIZE], in add_auth_data() argument 86 unsigned char X[DTLS_CCM_BLOCKSIZE]) { in add_auth_data() argument 91 memset(B, 0, DTLS_CCM_BLOCKSIZE); in add_auth_data() 122 i = min(DTLS_CCM_BLOCKSIZE - j, la); in add_auth_data() 127 memxor(B, X, DTLS_CCM_BLOCKSIZE); in add_auth_data() 131 while (la > DTLS_CCM_BLOCKSIZE) { in add_auth_data() [all …]
|
D | ccm.h | 33 #define DTLS_CCM_BLOCKSIZE 16 /**< size of hmac blocks */ macro 59 unsigned char nonce[DTLS_CCM_BLOCKSIZE], 65 unsigned char nonce[DTLS_CCM_BLOCKSIZE],
|
D | dtls.c | 1218 unsigned char nonce[DTLS_CCM_BLOCKSIZE]; in dtls_prepare_record() 1285 memset(nonce, 0, DTLS_CCM_BLOCKSIZE); in dtls_prepare_record() 1290 dtls_debug_dump("nonce:", nonce, DTLS_CCM_BLOCKSIZE); in dtls_prepare_record() 2901 unsigned char nonce[DTLS_CCM_BLOCKSIZE]; in decrypt_verify() 2907 memset(nonce, 0, DTLS_CCM_BLOCKSIZE); in decrypt_verify() 2916 dtls_debug_dump("nonce", nonce, DTLS_CCM_BLOCKSIZE); in decrypt_verify()
|
/net-tools-3.5.0/tinydtls-0.8.2/tests/ |
D | ccm-testdata.c | 32 unsigned char key[DTLS_CCM_BLOCKSIZE]; 33 unsigned char nonce[DTLS_CCM_BLOCKSIZE];
|