Lines Matching refs:A
37 #define CCM_FLAGS(A,M,L) (((A > 0) << 6) | (((M - 2)/2) << 3) | (L - 1)) argument
41 #define SET_COUNTER(A,L,cnt,C) { \ argument
43 memset((A) + DTLS_CCM_BLOCKSIZE - (L), 0, (L)); \
46 (A)[i] |= (C) & 0xFF; \
151 unsigned char A[DTLS_CCM_BLOCKSIZE], in encrypt()
156 SET_COUNTER(A, L, counter, counter_tmp); in encrypt()
157 rijndael_encrypt(ctx, A, S); in encrypt()
184 unsigned char A[DTLS_CCM_BLOCKSIZE]; /* A_i blocks for encryption input */ in dtls_ccm_encrypt_message() local
195 A[0] = L-1; in dtls_ccm_encrypt_message()
198 memcpy(A + 1, nonce, DTLS_CCM_BLOCKSIZE - L); in dtls_ccm_encrypt_message()
205 encrypt(ctx, L, counter, msg, DTLS_CCM_BLOCKSIZE, A, S); in dtls_ccm_encrypt_message()
223 encrypt(ctx, L, counter, msg, lm, A, S); in dtls_ccm_encrypt_message()
230 SET_COUNTER(A, L, 0, counter_tmp); in dtls_ccm_encrypt_message()
231 rijndael_encrypt(ctx, A, S); in dtls_ccm_encrypt_message()
249 unsigned char A[DTLS_CCM_BLOCKSIZE]; /* A_i blocks for encryption input */ in dtls_ccm_decrypt_message() local
265 A[0] = L-1; in dtls_ccm_decrypt_message()
268 memcpy(A + 1, nonce, DTLS_CCM_BLOCKSIZE - L); in dtls_ccm_decrypt_message()
272 encrypt(ctx, L, counter, msg, DTLS_CCM_BLOCKSIZE, A, S); in dtls_ccm_decrypt_message()
285 encrypt(ctx, L, counter, msg, lm, A, S); in dtls_ccm_decrypt_message()
300 SET_COUNTER(A, L, 0, counter_tmp); in dtls_ccm_decrypt_message()
301 rijndael_encrypt(ctx, A, S); in dtls_ccm_decrypt_message()