Lines Matching refs:add_len
276 size_t add_len ) in mbedtls_gcm_starts() argument
286 GCM_VALIDATE_RET( add_len == 0 || add != NULL ); in mbedtls_gcm_starts()
292 ( (uint64_t) add_len ) >> 61 != 0 ) in mbedtls_gcm_starts()
302 ctx->add_len = 0; in mbedtls_gcm_starts()
340 ctx->add_len = add_len; in mbedtls_gcm_starts()
342 while( add_len > 0 ) in mbedtls_gcm_starts()
344 use_len = ( add_len < 16 ) ? add_len : 16; in mbedtls_gcm_starts()
351 add_len -= use_len; in mbedtls_gcm_starts()
434 orig_add_len = ctx->add_len * 8; in mbedtls_gcm_finish()
468 size_t add_len, in mbedtls_gcm_crypt_and_tag() argument
478 GCM_VALIDATE_RET( add_len == 0 || add != NULL ); in mbedtls_gcm_crypt_and_tag()
483 if( ( ret = mbedtls_gcm_starts( ctx, mode, iv, iv_len, add, add_len ) ) != 0 ) in mbedtls_gcm_crypt_and_tag()
500 size_t add_len, in mbedtls_gcm_auth_decrypt() argument
513 GCM_VALIDATE_RET( add_len == 0 || add != NULL ); in mbedtls_gcm_auth_decrypt()
519 iv, iv_len, add, add_len, in mbedtls_gcm_auth_decrypt()