Home
last modified time | relevance | path

Searched refs:add_len (Results 1 – 12 of 12) sorted by relevance

/trusted-firmware-m-3.6.0/platform/ext/target/stm/common/hal/accelerator/
Dccm_alt.c172 const unsigned char *add, size_t add_len, in ccm_auth_crypt() argument
212 if( add_len > 0xFF00 ) in ccm_auth_crypt()
231 if( add_len > 0 ) b0[0] |= 0x40; in ccm_auth_crypt()
259 if( add_len > 0 ) in ccm_auth_crypt()
263 b1_padding = ((add_len + H_LENGTH) % 4); in ccm_auth_crypt()
264 b1_length = add_len + H_LENGTH + b1_padding; in ccm_auth_crypt()
281 b1_aligned_addr[0] = (unsigned char)( ( add_len >> 8 ) & 0xFF ); in ccm_auth_crypt()
282 b1_aligned_addr[1] = (unsigned char)( ( add_len ) & 0xFF ); in ccm_auth_crypt()
285 memcpy( b1_aligned_addr + H_LENGTH, add, add_len ); in ccm_auth_crypt()
362 if( add_len > 0 ) in ccm_auth_crypt()
[all …]
Dgcm_alt.c91 size_t add_len );
349 size_t add_len ) in gcm_starts() argument
359 GCM_VALIDATE_RET( add_len == 0 || add != NULL ); in gcm_starts()
365 ( (uint64_t) add_len ) >> 61 != 0 ) in gcm_starts()
387 ctx->add_len = 0; in gcm_starts()
404 ctx->add_len = add_len; in gcm_starts()
406 while( add_len > 0 ) in gcm_starts()
408 use_len = ( add_len < 16 ) ? add_len : 16; in gcm_starts()
415 add_len -= use_len; in gcm_starts()
517 orig_add_len = ctx->add_len * 8; in gcm_finish()
[all …]
Dgcm_alt.h56 uint64_t add_len; /*!< The total length of the additional data. */ member
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/
Dccm_alt.c60 size_t add_len, in mbedtls_ccm_encrypt_and_tag() argument
66 …return mbedtls_ccm_encrypt_and_tag_int(ctx, length, iv, iv_len, add, add_len, input, output, tag, … in mbedtls_ccm_encrypt_and_tag()
77 size_t add_len, in mbedtls_ccm_auth_decrypt() argument
85 …return mbedtls_ccm_auth_decrypt_int( ctx, length, iv, iv_len, add, add_len, input, output, tag, ta… in mbedtls_ccm_auth_decrypt()
93 size_t add_len, in mbedtls_ccm_star_encrypt_and_tag() argument
99 …return mbedtls_ccm_encrypt_and_tag_int(ctx, length, iv, iv_len, add, add_len, input, output, tag, … in mbedtls_ccm_star_encrypt_and_tag()
107 size_t add_len, in mbedtls_ccm_star_auth_decrypt() argument
113 …return mbedtls_ccm_auth_decrypt_int(ctx, length, iv, iv_len, add, add_len, input, output, tag, tag… in mbedtls_ccm_star_auth_decrypt()
Dgcm_alt.c538 size_t add_len, in mbedtls_gcm_crypt_and_tag() argument
548 add, add_len, in mbedtls_gcm_crypt_and_tag()
559 size_t add_len, in mbedtls_gcm_auth_decrypt() argument
569 add, add_len, in mbedtls_gcm_auth_decrypt()
627 size_t add_len) in mbedtls_gcm_update_ad() argument
631 CC_UNUSED_PARAM(add_len); in mbedtls_gcm_update_ad()
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/host/src/tests/integration_cc3x/runtime_integration_test/tests/
Drun_integration_gcm.c52 static const size_t add_len = sizeof(additional); in runIt_gcmProfiling() local
73 ALLOC_AND_COPY(addBufPtr, pAddBuf, additional, add_len); in runIt_gcmProfiling()
93 add_len, in runIt_gcmProfiling()
110 (uint32_t)key_len, (uint32_t)data_len, (uint32_t)add_len); in runIt_gcmProfiling()
127 static const size_t add_len = sizeof(additional); in runIt_gcm() local
151 ALLOC_AND_COPY(addBufPtr, pAddBuf, additional, add_len); in runIt_gcm()
168 add_len, in runIt_gcm()
201 add_len, in runIt_gcm()
227 add_len, in runIt_gcm()
247 (uint32_t)key_len, (uint32_t)pt_len, (uint32_t)add_len); in runIt_gcm()
/trusted-firmware-m-3.6.0/secure_fw/partitions/protected_storage/crypto/
Dps_crypto_interface.h77 size_t add_len,
100 size_t add_len,
118 uint32_t add_len);
131 uint32_t add_len);
Dps_crypto_interface.c193 size_t add_len, in ps_crypto_encrypt_and_tag() argument
204 add, add_len, in ps_crypto_encrypt_and_tag()
220 size_t add_len, in ps_crypto_auth_and_decrypt() argument
235 add, add_len, in ps_crypto_auth_and_decrypt()
247 uint32_t add_len) in ps_crypto_generate_auth_tag() argument
254 add, add_len, in ps_crypto_generate_auth_tag()
266 uint32_t add_len) in ps_crypto_authenticate() argument
273 add, add_len, in ps_crypto_authenticate()
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/cc3x_sym/api/
Dmbedtls_ccm_internal.h30 size_t add_len,
42 size_t add_len,
Dmbedtls_ccm_internal.c496 size_t add_len, in ccm_auth_crypt() argument
512 rc = ccm_init(ctx, dir, add_len, length, iv, iv_len, tag_len, ccmMode); in ccm_auth_crypt()
519 if (add_len != 0) in ccm_auth_crypt()
521 rc = ccm_ass_data(ctx, add, add_len); in ccm_auth_crypt()
653 size_t add_len, in mbedtls_ccm_encrypt_and_tag_int() argument
660 …return ccm_auth_crypt(ctx, length, iv, iv_len, add, add_len, input, output, tag, tag_len, CRYPTO_D… in mbedtls_ccm_encrypt_and_tag_int()
668 size_t add_len, in mbedtls_ccm_auth_decrypt_int() argument
690 …return ccm_auth_crypt(ctx, length, iv, iv_len, add, add_len, input, output, localMacBuf, tag_len, … in mbedtls_ccm_auth_decrypt_int()
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/
Dcc3xx_internal_ccm.c551 size_t add_len, const unsigned char *input, in ccm_auth_crypt() argument
565 status = ccm_init(&context, dir, add_len, length, iv, iv_len, tag_length, in ccm_auth_crypt()
572 if (add_len != 0) { in ccm_auth_crypt()
573 status = ccm_ass_data(&context, add, add_len); in ccm_auth_crypt()
/trusted-firmware-m-3.6.0/docs/design_docs/services/
Dps_key_management.rst112 add, add_len,