Lines Matching refs:la
52 size_t la, /* l(a) octets additional authenticated data */ in block0() argument
58 result[0] = CCM_FLAGS(la, M, L); in block0()
84 add_auth_data(rijndael_ctx *ctx, const unsigned char *msg, size_t la, in add_auth_data() argument
93 if (!la) in add_auth_data()
97 if (la < 0xFF00) { /* 2^16 - 2^8 */ in add_auth_data()
99 dtls_int_to_uint16(B, la); in add_auth_data()
100 } else if (la <= UINT32_MAX) { in add_auth_data()
103 dtls_int_to_uint32(B+2, la); in add_auth_data()
107 dtls_int_to_uint64(B+2, la); in add_auth_data()
117 assert(la < 0xFF00); in add_auth_data()
119 dtls_int_to_uint16(B, la); in add_auth_data()
122 i = min(DTLS_CCM_BLOCKSIZE - j, la); in add_auth_data()
124 la -= i; in add_auth_data()
131 while (la > DTLS_CCM_BLOCKSIZE) { in add_auth_data()
134 la -= DTLS_CCM_BLOCKSIZE; in add_auth_data()
139 if (la) { in add_auth_data()
141 memcpy(B, msg, la); in add_auth_data()
179 const unsigned char *aad, size_t la) { in dtls_ccm_encrypt_message() argument
191 block0(M, L, la, lm, nonce, B); in dtls_ccm_encrypt_message()
192 add_auth_data(ctx, aad, la, B, X); in dtls_ccm_encrypt_message()
243 const unsigned char *aad, size_t la) { in dtls_ccm_decrypt_message() argument
261 block0(M, L, la, lm, nonce, B); in dtls_ccm_decrypt_message()
262 add_auth_data(ctx, aad, la, B, X); in dtls_ccm_decrypt_message()