Home
last modified time | relevance | path

Searched refs:aad_len (Results 1 – 3 of 3) sorted by relevance

/openthread-3.6.0/third_party/mbedtls/repo/library/
Dchachapoly.c60 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
[all …]
/openthread-3.6.0/third_party/mbedtls/repo/include/mbedtls/
Dchachapoly.h68 …uint64_t aad_len; /**< The length (bytes) of the Additional Authenticated Da… member
216 size_t aad_len );
306 size_t aad_len,
340 size_t aad_len,
/openthread-3.6.0/third_party/mbedtls/repo/tests/suites/
Dtest_suite_chachapoly.function79 size_t aad_len = sizeof( aad );
112 NULL, aad_len,
144 NULL, aad_len,
173 aad_len ) );
176 aad_len ) );
210 size_t aad_len = sizeof( aad );
227 TEST_ASSERT( mbedtls_chachapoly_update_aad( &ctx, aad, aad_len )
238 TEST_ASSERT( mbedtls_chachapoly_update_aad( &ctx, aad, aad_len )
250 TEST_ASSERT( mbedtls_chachapoly_update_aad( &ctx, aad, aad_len )
262 TEST_ASSERT( mbedtls_chachapoly_update_aad( &ctx, aad, aad_len )
[all …]