Home
last modified time | relevance | path

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

/optee_os/core/drivers/crypto/caam/ae/
H A Dcaam_ae_ccm.c65 if (caam_ctx->tag_length < 4 || caam_ctx->tag_length > 16 || in caam_ae_ccm_init_ctx()
66 caam_ctx->tag_length % 2 != 0) in caam_ae_ccm_init_ctx()
90 b0[0] = B0_TAG_LENGTH(caam_ctx->tag_length) | B0_Q_LENGTH(q); in caam_ae_ccm_init_ctx()
155 if (caam_ctx->tag_length < AES_CCM_MIN_TAG_LEN || in caam_ae_initialize_ccm()
156 caam_ctx->tag_length > AES_CCM_MAX_TAG_LEN) in caam_ae_initialize_ccm()
195 if (caam_ctx->tag_length) { in caam_ae_final_ccm()
196 if (dfinal->tag.length < caam_ctx->tag_length) in caam_ae_final_ccm()
204 caam_ctx->tag_length); in caam_ae_final_ccm()
205 dfinal->tag.length = caam_ctx->tag_length; in caam_ae_final_ccm()
209 mod_op.n.length = caam_ctx->tag_length; in caam_ae_final_ccm()
[all …]
H A Dcaam_ae_gcm.c337 if (caam_ctx->tag_length) { in caam_ae_final_gcm()
338 if (dfinal->tag.length < caam_ctx->tag_length) in caam_ae_final_gcm()
343 caam_ctx->tag_length); in caam_ae_final_gcm()
344 dfinal->tag.length = caam_ctx->tag_length; in caam_ae_final_gcm()
348 caam_ctx->tag_length)) in caam_ae_final_gcm()
H A Dlocal.h56 size_t tag_length; member
H A Dcaam_ae.c170 caam_ctx->tag_length = dinit->tag_len; in caam_ae_initialize()
316 dst->tag_length = src->tag_length; in caam_ae_copy_state()
/optee_os/lib/libmbedtls/mbedtls/library/
H A Dpsa_crypto_aead.c112 operation->tag_length = PSA_ALG_AEAD_GET_TAG_LENGTH(alg); in psa_aead_setup()
139 if (ciphertext_size < (plaintext_length + operation.tag_length)) { in mbedtls_psa_aead_encrypt()
154 tag, operation.tag_length)); in mbedtls_psa_aead_encrypt()
166 operation.tag_length, tag)); in mbedtls_psa_aead_encrypt()
171 if (operation.tag_length != 16) { in mbedtls_psa_aead_encrypt()
197 *ciphertext_length = plaintext_length + operation.tag_length; in mbedtls_psa_aead_encrypt()
211 static psa_status_t psa_aead_unpadded_locate_tag(size_t tag_length, in psa_aead_unpadded_locate_tag() argument
218 if (tag_length > ciphertext_length) { in psa_aead_unpadded_locate_tag()
221 payload_length = ciphertext_length - tag_length; in psa_aead_unpadded_locate_tag()
249 status = psa_aead_unpadded_locate_tag(operation.tag_length, in mbedtls_psa_aead_decrypt()
[all …]
H A Dpsa_crypto_aead.h470 size_t *tag_length);
H A Dpsa_crypto_driver_wrappers.h2065 size_t *tag_length ) in psa_driver_wrapper_aead_finish() argument
2075 tag_size, tag_length ) ); in psa_driver_wrapper_aead_finish()
2085 ciphertext_length, tag, tag_size, tag_length ) ); in psa_driver_wrapper_aead_finish()
2098 (void)tag_length; in psa_driver_wrapper_aead_finish()
2109 size_t tag_length ) in psa_driver_wrapper_aead_verify() argument
2130 if( tag_length != check_tag_length || in psa_driver_wrapper_aead_verify()
2131 mbedtls_ct_memcmp( tag, check_tag, tag_length ) in psa_driver_wrapper_aead_verify()
2149 plaintext_length, tag, tag_length ) ); in psa_driver_wrapper_aead_verify()
2161 (void)tag_length; in psa_driver_wrapper_aead_verify()
H A Dpsa_crypto.c5525 size_t *tag_length) in psa_aead_finish() argument
5536 *tag_length = tag_size; in psa_aead_finish()
5551 tag, tag_size, tag_length); in psa_aead_finish()
5561 psa_wipe_tag_output_buffer(tag, status, tag_size, *tag_length); in psa_aead_finish()
5578 size_t tag_length) in psa_aead_verify() argument
5586 LOCAL_INPUT_ALLOC(tag_external, tag_length, tag); in psa_aead_verify()
5603 tag, tag_length); in psa_aead_verify()
/optee_os/lib/libmbedtls/mbedtls/include/psa/
H A Dcrypto_builtin_composites.h85 uint8_t MBEDTLS_PRIVATE(tag_length);
H A Dcrypto.h2726 size_t *tag_length);
2808 size_t tag_length);
H A Dcrypto_values.h1327 #define PSA_ALG_AEAD_WITH_SHORTENED_TAG(aead_alg, tag_length) \ argument
1330 ((tag_length) << PSA_AEAD_TAG_LENGTH_OFFSET & \