Home
last modified time | relevance | path

Searched refs:tag_length (Results 1 – 25 of 29) sorted by relevance

12

/third_party/mbedtls/library/
Dpsa_crypto_aead.c134 operation->tag_length = PSA_AEAD_TAG_LENGTH( operation->key_type, in psa_aead_setup()
162 if( ciphertext_size < ( plaintext_length + operation.tag_length ) ) in mbedtls_psa_aead_encrypt()
179 tag, operation.tag_length ) ); in mbedtls_psa_aead_encrypt()
193 operation.tag_length, tag ) ); in mbedtls_psa_aead_encrypt()
200 if( operation.tag_length != 16 ) in mbedtls_psa_aead_encrypt()
228 *ciphertext_length = plaintext_length + operation.tag_length; in mbedtls_psa_aead_encrypt()
241 static psa_status_t psa_aead_unpadded_locate_tag( size_t tag_length, in psa_aead_unpadded_locate_tag() argument
248 if( tag_length > ciphertext_length ) in psa_aead_unpadded_locate_tag()
250 payload_length = ciphertext_length - tag_length; in psa_aead_unpadded_locate_tag()
276 status = psa_aead_unpadded_locate_tag( operation.tag_length, in mbedtls_psa_aead_decrypt()
[all …]
Dpsa_crypto_driver_wrappers.c1867 size_t *tag_length ) in psa_driver_wrapper_aead_finish() argument
1877 tag_size, tag_length ) ); in psa_driver_wrapper_aead_finish()
1887 ciphertext_length, tag, tag_size, tag_length ) ); in psa_driver_wrapper_aead_finish()
1900 (void)tag_length; in psa_driver_wrapper_aead_finish()
1911 size_t tag_length ) in psa_driver_wrapper_aead_verify() argument
1932 if( tag_length != check_tag_length || in psa_driver_wrapper_aead_verify()
1933 mbedtls_psa_safer_memcmp( tag, check_tag, tag_length ) in psa_driver_wrapper_aead_verify()
1951 plaintext_length, tag, tag_length ) ); in psa_driver_wrapper_aead_verify()
1963 (void)tag_length; in psa_driver_wrapper_aead_verify()
Dpsa_crypto_aead.h482 size_t *tag_length );
Dpsa_crypto_driver_wrappers.h272 size_t *tag_length );
280 size_t tag_length );
Dpsa_crypto.c4207 size_t *tag_length ) in psa_aead_finish() argument
4212 *tag_length = tag_size; in psa_aead_finish()
4227 tag, tag_size, tag_length ); in psa_aead_finish()
4239 else if( *tag_length < tag_size ) in psa_aead_finish()
4240 memset( tag + *tag_length, '!', ( tag_size - *tag_length ) ); in psa_aead_finish()
4255 size_t tag_length ) in psa_aead_verify() argument
4274 tag, tag_length ); in psa_aead_verify()
/third_party/grpc/src/core/tsi/alts/zero_copy_frame_protector/
Dalts_iovec_record_protocol.cc34 size_t tag_length; member
92 if (tag.iov_len != rp->tag_length) { in ensure_header_and_tag_length()
172 return rp->tag_length; in alts_iovec_record_protocol_get_tag_length()
183 kZeroCopyFrameMessageTypeFieldSize + rp->tag_length; in alts_iovec_record_protocol_max_unprotected_data_size()
218 status = write_frame_header(data_length + rp->tag_length, in alts_iovec_record_protocol_integrity_only_protect()
234 if (bytes_written != rp->tag_length) { in alts_iovec_record_protocol_integrity_only_protect()
270 status = verify_frame_header(data_length + rp->tag_length, in alts_iovec_record_protocol_integrity_only_unprotect()
322 rp->tag_length) { in alts_iovec_record_protocol_privacy_integrity_protect()
328 data_length + rp->tag_length, in alts_iovec_record_protocol_privacy_integrity_protect()
337 iovec_t ciphertext = {ciphertext_buffer, data_length + rp->tag_length}; in alts_iovec_record_protocol_privacy_integrity_protect()
[all …]
Dalts_grpc_integrity_only_record_protocol.cc48 unprotected_slices->length + rp->header_length + rp->tag_length; in alts_grpc_integrity_only_extra_copy_protect()
62 rp->tag_length}; in alts_grpc_integrity_only_extra_copy_protect()
96 grpc_slice tag_slice = GRPC_SLICE_MALLOC(rp->tag_length); in alts_grpc_integrity_only_protect()
131 if (protected_slices->length < rp->header_length + rp->tag_length) { in alts_grpc_integrity_only_unprotect()
150 protected_slices->length - rp->tag_length, in alts_grpc_integrity_only_unprotect()
152 GPR_ASSERT(protected_slices->length == rp->tag_length); in alts_grpc_integrity_only_unprotect()
153 iovec_t tag_iovec = {nullptr, rp->tag_length}; in alts_grpc_integrity_only_unprotect()
222 static_cast<unsigned char*>(gpr_malloc(impl->base.tag_length)); in alts_grpc_integrity_only_record_protocol_create()
Dalts_grpc_privacy_integrity_record_protocol.cc85 if (protected_slices->length < rp->header_length + rp->tag_length) { in alts_grpc_privacy_integrity_unprotect()
90 protected_slices->length - rp->header_length - rp->tag_length; in alts_grpc_privacy_integrity_unprotect()
Dalts_grpc_record_protocol_common.h53 size_t tag_length; member
Dalts_grpc_record_protocol_common.cc114 rp->tag_length = alts_iovec_record_protocol_get_tag_length(rp->iovec_rp); in alts_grpc_record_protocol_init()
/third_party/mbedtls/tests/suites/
Dtest_suite_psa_crypto_metadata.function219 size_t tag_length )
234 TEST_EQUAL( tag_length, PSA_AEAD_TAG_LENGTH( key_type, key_bits, alg ) );
425 size_t tag_length = tag_length_arg;
431 key_type, key_bits, tag_length );
434 for( n = 1; n <= tag_length; n++ )
446 TEST_EQUAL( PSA_ALG_AEAD_WITH_SHORTENED_TAG( truncated_alg, tag_length - 1 ),
447 PSA_ALG_AEAD_WITH_SHORTENED_TAG( alg, tag_length - 1) );
448 TEST_EQUAL( PSA_ALG_AEAD_WITH_SHORTENED_TAG( truncated_alg, tag_length ),
449 PSA_ALG_AEAD_WITH_SHORTENED_TAG( alg, tag_length ) );
459 … PSA_ALG_AEAD_WITH_AT_LEAST_THIS_LENGTH_TAG( truncated_alg, n ), tag_length - 1 ),
[all …]
Dtest_suite_psa_crypto.function343 size_t tag_length = 0;
373 tag_length = PSA_AEAD_TAG_LENGTH( key_type, key_bits, alg );
380 tag_length ) );
387 tag_length ) );
390 data_true_size = input_data->len - tag_length;
528 tag_buffer, tag_length,
536 tag_length ) );
550 TEST_EQUAL( tag_length, tag_size );
552 if( output_data && tag_length )
554 tag_length );
[all …]
/third_party/grpc/src/core/tsi/alts/crypt/
Daes_gcm.cc48 size_t tag_length; member
100 plaintext_length + aes_gcm_crypter->tag_length; in gsec_aes_gcm_aead_crypter_max_ciphertext_and_tag_length()
114 if (ciphertext_and_tag_length < aes_gcm_crypter->tag_length) { in gsec_aes_gcm_aead_crypter_max_plaintext_length()
121 ciphertext_and_tag_length - aes_gcm_crypter->tag_length; in gsec_aes_gcm_aead_crypter_max_plaintext_length()
154 const gsec_aead_crypter* crypter, size_t* tag_length, in gsec_aes_gcm_aead_crypter_tag_length() argument
156 if (tag_length == nullptr) { in gsec_aes_gcm_aead_crypter_tag_length()
163 *tag_length = aes_gcm_crypter->tag_length; in gsec_aes_gcm_aead_crypter_tag_length()
633 size_t tag_length, bool rekey, in gsec_aes_gcm_aead_crypter_create() argument
648 (tag_length != kAesGcmTagLength) || in gsec_aes_gcm_aead_crypter_create()
661 aes_gcm_crypter->tag_length = tag_length; in gsec_aes_gcm_aead_crypter_create()
Dgsec.h168 grpc_status_code (*tag_length)(const gsec_aead_crypter* crypter, member
452 size_t tag_length, bool rekey,
Dgsec.cc174 crypter->vtable->tag_length != nullptr) { in gsec_aead_crypter_tag_length()
175 return crypter->vtable->tag_length(crypter, tag_length_to_return, in gsec_aead_crypter_tag_length()
/third_party/mbedtls/tests/src/drivers/
Dtest_driver_aead.c318 size_t *tag_length ) in mbedtls_test_transparent_aead_finish() argument
333 tag_length ); in mbedtls_test_transparent_aead_finish()
341 (void) tag_length; in mbedtls_test_transparent_aead_finish()
355 size_t tag_length ) in mbedtls_test_transparent_aead_verify() argument
388 if( tag_length != check_tag_length || in mbedtls_test_transparent_aead_verify()
389 mbedtls_psa_safer_memcmp( tag, check_tag, tag_length ) in mbedtls_test_transparent_aead_verify()
/third_party/grpc/test/core/tsi/alts/zero_copy_frame_protector/
Dalts_iovec_record_protocol_test.cc44 size_t tag_length; member
162 var->tag_length = kTagLength; in alts_iovec_record_protocol_test_var_create()
163 var->tag_buf = static_cast<uint8_t*>(gpr_malloc(var->tag_length)); in alts_iovec_record_protocol_test_var_create()
165 var->tag_iovec.iov_len = var->tag_length; in alts_iovec_record_protocol_test_var_create()
177 var->header_length + var->data_length + var->tag_length; in alts_iovec_record_protocol_test_var_create()
314 offset = alter_random_byte(var->tag_buf, var->tag_length); in integrity_only_corrupted_data()
356 iovec_t tag_iovec = {nullptr, var->tag_length}; in integrity_only_protect_input_check()
401 iovec_t tag_iovec = {nullptr, var->tag_length}; in integrity_only_unprotect_input_check()
438 var->data_length + var->tag_length, &var->data_iovec, in privacy_integrity_random_seal_unseal()
454 size_t empty_payload_frame_size = var->header_length + var->tag_length; in privacy_integrity_empty_seal_unseal()
[all …]
Dalts_grpc_record_protocol_test.cc47 size_t tag_length; member
243 var->tag_length = kTagLength; in alts_grpc_record_protocol_test_var_create()
284 data_length + var->header_length + var->tag_length); in random_seal_unseal()
308 var->header_length + var->tag_length); in empty_seal_unseal()
385 &var->protected_sb, var->header_length + var->tag_length - 1, &temp_sb); in input_check()
/third_party/mbedtls/tests/include/test/drivers/
Daead.h119 size_t *tag_length );
127 size_t tag_length );
/third_party/grpc/test/core/tsi/alts/crypt/
Daes_gcm_test.cc84 size_t nonce_length, tag_length; in gsec_test_random_encrypt_decrypt() local
87 gsec_aead_crypter_tag_length(crypter, &tag_length, nullptr); in gsec_test_random_encrypt_decrypt()
108 GPR_ASSERT(message_length + tag_length == ciphertext_and_tag_length); in gsec_test_random_encrypt_decrypt()
129 if (tag_length >= kTestMinTagLengthForCorruption) { in gsec_test_random_encrypt_decrypt()
228 size_t nonce_length, tag_length; in gsec_test_multiple_random_encrypt_decrypt() local
235 gsec_aead_crypter_tag_length(crypter, &tag_length, nullptr); in gsec_test_multiple_random_encrypt_decrypt()
275 GPR_ASSERT(message_length + tag_length == ciphertext_and_tag_lengths[ind]); in gsec_test_multiple_random_encrypt_decrypt()
538 size_t nonce_length, tag_length; in gsec_test_decryption_failure() local
542 gsec_aead_crypter_tag_length(crypter, &tag_length, nullptr); in gsec_test_decryption_failure()
620 if (tag_length > 0) { in gsec_test_decryption_failure()
[all …]
/third_party/skia/third_party/externals/freetype/src/base/
Dftdebug.c498 size_t tag_length = ft_strlen( *origin->tags ); in ft_log_handler() local
506 i < FT_MAX_TRACE_LEVEL_LENGTH - tag_length; in ft_log_handler()
/third_party/mbedtls/include/psa/
Dcrypto_builtin_composites.h94 uint8_t MBEDTLS_PRIVATE(tag_length);
Dcrypto.h2744 size_t *tag_length);
2828 size_t tag_length);
Dcrypto_values.h1266 #define PSA_ALG_AEAD_WITH_SHORTENED_TAG(aead_alg, tag_length) \ argument
1269 ((tag_length) << PSA_AEAD_TAG_LENGTH_OFFSET & \
/third_party/skia/third_party/externals/freetype/builds/windows/
Dftdebug.c511 size_t tag_length = ft_strlen( *origin->tags ); in ft_log_handler() local
519 i < FT_MAX_TRACE_LEVEL_LENGTH - tag_length; in ft_log_handler()

12