Lines Matching refs:aad_len
60 uint32_t partial_block_len = (uint32_t) ( ctx->aad_len % 16U ); in chachapoly_pad_aad()
98 ctx->aad_len = 0U; in mbedtls_chachapoly_init()
111 ctx->aad_len = 0U; in mbedtls_chachapoly_free()
158 ctx->aad_len = 0U; in mbedtls_chachapoly_starts()
171 size_t aad_len ) in mbedtls_chachapoly_update_aad() argument
174 CHACHAPOLY_VALIDATE_RET( aad_len == 0 || aad != NULL ); in mbedtls_chachapoly_update_aad()
179 ctx->aad_len += aad_len; in mbedtls_chachapoly_update_aad()
181 return( mbedtls_poly1305_update( &ctx->poly1305_ctx, aad, aad_len ) ); in mbedtls_chachapoly_update_aad()
266 MBEDTLS_PUT_UINT64_LE(ctx->aad_len, len_block, 0); in mbedtls_chachapoly_finish()
283 size_t aad_len, in chachapoly_crypt_and_tag() argument
294 ret = mbedtls_chachapoly_update_aad( ctx, aad, aad_len ); in chachapoly_crypt_and_tag()
312 size_t aad_len, in mbedtls_chachapoly_encrypt_and_tag() argument
320 CHACHAPOLY_VALIDATE_RET( aad_len == 0 || aad != NULL ); in mbedtls_chachapoly_encrypt_and_tag()
325 length, nonce, aad, aad_len, in mbedtls_chachapoly_encrypt_and_tag()
333 size_t aad_len, in mbedtls_chachapoly_auth_decrypt() argument
345 CHACHAPOLY_VALIDATE_RET( aad_len == 0 || aad != NULL ); in mbedtls_chachapoly_auth_decrypt()
351 aad, aad_len, input, output, check_tag ) ) != 0 ) in mbedtls_chachapoly_auth_decrypt()