| /trusted-firmware-m-latest/platform/ext/accelerator/cc312/cc312-rom/psa_driver_api/src/ |
| D | cc3xx_psa_mac.c | 34 const uint8_t *key_buffer, in cmac_compute() argument 56 (const uint32_t *)key_buffer, key_size, in cmac_compute() 85 const uint8_t *key_buffer, in cmac_setup() argument 103 (const uint32_t *)key_buffer, key_size, in cmac_setup() 163 static psa_status_t hmac_compute(size_t tag_len, const uint8_t *key_buffer, in hmac_compute() argument 198 err = cc3xx_lowlevel_hmac_compute(tag_len, key_buffer, key_buffer_size, hash_alg_cc, in hmac_compute() 208 const uint8_t *key_buffer, in hmac_setup() argument 242 err = cc3xx_lowlevel_hmac_set_key(state, key_buffer, key_buffer_size, hash_alg_cc); in hmac_setup() 257 const uint8_t *key_buffer, size_t key_buffer_size, in mac_setup() argument 264 CC3XX_ASSERT(!key_buffer_size ^ (key_buffer != NULL)); in mac_setup() [all …]
|
| D | cc3xx_psa_key_generation.c | 37 uint8_t *key_buffer, size_t key_buffer_size, in cc3xx_generate_key() argument 41 CC3XX_ASSERT(key_buffer != NULL); in cc3xx_generate_key() 79 …cc3xx_dpa_hardened_word_copy((uint32_t *)key_buffer, key_buffer_local, gen_key_sz / sizeof(uint32_… in cc3xx_generate_key() 89 … return mbedtls_psa_external_get_random(NULL, key_buffer, key_buffer_size, key_buffer_length); in cc3xx_generate_key() 96 const uint8_t *key_buffer, in cc3xx_export_public_key() argument 101 CC3XX_ASSERT(key_buffer != NULL); in cc3xx_export_public_key() 119 memcpy(data, key_buffer, key_buffer_size); in cc3xx_export_public_key() 145 (const uint32_t *)key_buffer, in cc3xx_export_public_key()
|
| D | cc3xx_psa_asymmetric_encryption.c | 31 const uint8_t *key_buffer, in cc3xx_asymmetric_encrypt() argument 44 const uint8_t *key_buffer, in cc3xx_asymmetric_decrypt() argument
|
| D | cc3xx_psa_aead.c | 51 const uint8_t *key_buffer, size_t key_buffer_size, in aead_crypt() argument 70 CC3XX_ASSERT(key_buffer != NULL); in aead_crypt() 130 CC3XX_CHACHA_MODE_CHACHA_POLY1305, (uint32_t *)key_buffer, in aead_crypt() 190 (uint32_t *)key_buffer, key_size, in aead_crypt() 259 const uint8_t *key_buffer, size_t key_buffer_size, in cc3xx_aead_encrypt_setup() argument 264 key_buffer, key_buffer_size, in cc3xx_aead_encrypt_setup() 271 const uint8_t *key_buffer, size_t key_buffer_size, in cc3xx_aead_decrypt_setup() argument 276 key_buffer, key_buffer_size, in cc3xx_aead_decrypt_setup() 761 const uint8_t *key_buffer, size_t key_buffer_size, in cc3xx_aead_encrypt() argument 769 attributes, key_buffer, key_buffer_size, alg, in cc3xx_aead_encrypt() [all …]
|
| D | cc3xx_psa_cipher.c | 88 const uint8_t *key_buffer, in cipher_crypt() argument 105 CC3XX_ASSERT(key_buffer != NULL); in cipher_crypt() 143 (uint32_t *)key_buffer, in cipher_crypt() 206 (uint32_t *)key_buffer, key_size, in cipher_crypt() 607 const uint8_t *key_buffer, in cc3xx_cipher_encrypt() argument 619 attributes, key_buffer, key_buffer_size, alg, in cc3xx_cipher_encrypt() 628 const uint8_t *key_buffer, in cc3xx_cipher_decrypt() argument 644 attributes, key_buffer, key_buffer_size, alg, in cc3xx_cipher_decrypt()
|
| /trusted-firmware-m-latest/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/ |
| D | cc3xx_psa_key_generation.c | 67 uint8_t *key_buffer, size_t key_buffer_size, in cc3xx_internal_gen_ecc_wstr_keypair() argument 129 CC_CommonReverseMemcpy(key_buffer, (uint8_t *)pPrivKey->PrivKey, in cc3xx_internal_gen_ecc_wstr_keypair() 143 uint8_t *key_buffer, size_t key_buffer_size, in cc3xx_internal_gen_rsa_keypair() argument 277 CC_PalMemSetZero(key_buffer, key_buffer_size); in cc3xx_internal_gen_rsa_keypair() 279 key_buffer, key_buffer_size, pCcPubKey->n, pCcPubKey->e, d_buff, in cc3xx_internal_gen_rsa_keypair() 287 CC_PalMemSetZero(key_buffer, key_buffer_size); in cc3xx_internal_gen_rsa_keypair() 314 uint8_t *key_buffer, size_t key_buffer_size, in cc3xx_generate_key() argument 333 attributes, key_buffer, key_buffer_size, key_buffer_length); in cc3xx_generate_key() 340 attributes, key_buffer, key_buffer_size, key_buffer_length); in cc3xx_generate_key() 344 err = psa_generate_random(key_buffer, key_buffer_size); in cc3xx_generate_key() [all …]
|
| D | cc3xx_psa_asymmetric_encryption.c | 39 const psa_key_attributes_t *attributes, const uint8_t *key_buffer, in cc3xx_internal_rsa_encrypt() argument 75 status = cc3xx_rsa_psa_priv_to_cc_pub(key_buffer, in cc3xx_internal_rsa_encrypt() 79 status = cc3xx_rsa_psa_pub_to_cc_pub(key_buffer, in cc3xx_internal_rsa_encrypt() 141 const psa_key_attributes_t *attributes, const uint8_t *key_buffer, in cc3xx_internal_rsa_decrypt() argument 168 status = cc3xx_rsa_psa_priv_to_cc_priv(key_buffer, key_buffer_size, in cc3xx_internal_rsa_decrypt() 225 const uint8_t *key_buffer, in cc3xx_asymmetric_encrypt() argument 248 attributes, key_buffer, key_buffer_size, alg, input, input_length, in cc3xx_asymmetric_encrypt() 265 const uint8_t *key_buffer, in cc3xx_asymmetric_decrypt() argument 286 attributes, key_buffer, key_buffer_size, alg, input, input_length, in cc3xx_asymmetric_decrypt()
|
| D | cc3xx_internal_rsa_util.c | 468 psa_status_t cc3xx_rsa_save_der_priv_key(uint8_t *key_buffer, in cc3xx_rsa_save_der_priv_key() argument 475 uint8_t *key_buffer_end_pnt = key_buffer + key_buffer_size; in cc3xx_rsa_save_der_priv_key() 497 bytes_written = cc3xx_asn1_write_big_integer(key_buffer_end, key_buffer, in cc3xx_rsa_save_der_priv_key() 511 bytes_written = cc3xx_asn1_write_big_integer(key_buffer_end, key_buffer, in cc3xx_rsa_save_der_priv_key() 525 bytes_written = cc3xx_asn1_write_big_integer(key_buffer_end, key_buffer, in cc3xx_rsa_save_der_priv_key() 539 bytes_written = cc3xx_asn1_write_big_integer(key_buffer_end, key_buffer, in cc3xx_rsa_save_der_priv_key() 553 bytes_written = cc3xx_asn1_write_big_integer(key_buffer_end, key_buffer, in cc3xx_rsa_save_der_priv_key() 567 bytes_written = cc3xx_asn1_write_big_integer(key_buffer_end, key_buffer, in cc3xx_rsa_save_der_priv_key() 578 cc3xx_asn1_write_big_integer(key_buffer_end, key_buffer, temp_buff, 3); in cc3xx_rsa_save_der_priv_key() 591 bytes_written = cc3xx_asn1_write_big_integer(key_buffer_end, key_buffer, in cc3xx_rsa_save_der_priv_key() [all …]
|
| D | cc3xx_psa_mac.c | 110 const uint8_t *key_buffer, in cmac_setup() argument 116 status = cc3xx_cipher_encrypt_setup(cmac, attributes, key_buffer, in cmac_setup() 128 status = cmac_setkey(&(cmac->ctx.aes), key_buffer, in cmac_setup() 254 const uint8_t *key_buffer, in hmac_setup() argument 295 status = cc3xx_hash_compute(hash_alg, key_buffer, key_buffer_size, ipad, in hmac_setup() 301 CC_PalMemCopy(ipad, key_buffer, key_buffer_size); in hmac_setup() 400 const uint8_t *key_buffer, size_t key_buffer_size, in mac_setup() argument 411 status = cmac_setup(&(operation->cmac), attributes, key_buffer, in mac_setup() 417 status = hmac_setup(operation, key_buffer, key_buffer_size, in mac_setup() 442 const uint8_t *key_buffer, in cc3xx_mac_sign_setup() argument [all …]
|
| D | cc3xx_psa_aead.c | 233 const uint8_t *key_buffer, size_t key_buffer_size, in aead_one_shot_with_multipart() argument 271 status = cc3xx_aead_encrypt_setup(&operation, attributes, key_buffer, in aead_one_shot_with_multipart() 274 status = cc3xx_aead_decrypt_setup(&operation, attributes, key_buffer, in aead_one_shot_with_multipart() 352 const uint8_t *key_buffer, size_t key_buffer_size, in cc3xx_aead_encrypt() argument 373 attributes, key_buffer, key_buffer_size, alg, nonce, nonce_length, in cc3xx_aead_encrypt() 381 attributes, key_buffer, key_buffer_size, alg, nonce, nonce_length, in cc3xx_aead_encrypt() 389 attributes, key_buffer, key_buffer_size, alg, nonce, nonce_length, in cc3xx_aead_encrypt() 400 key_buffer, key_buffer_size, in cc3xx_aead_encrypt() 413 const uint8_t *key_buffer, size_t key_buffer_size, in cc3xx_aead_decrypt() argument 434 attributes, key_buffer, key_buffer_size, alg, nonce, nonce_length, in cc3xx_aead_decrypt() [all …]
|
| D | cc3xx_psa_asymmetric_signature.c | 138 const psa_key_attributes_t *attributes, const uint8_t *key_buffer, in cc3xx_internal_ecdsa_sign() argument 196 CC_EcpkiPrivKeyBuild(pDomain, key_buffer, key_length, &pUserPrivKey); in cc3xx_internal_ecdsa_sign() 216 key_buffer, key_length, pDomain); in cc3xx_internal_ecdsa_sign() 251 const uint8_t *key_buffer, in cc3xx_internal_rsa_verify() argument 286 err = cc3xx_rsa_psa_priv_to_cc_pub(key_buffer, key_length, pUserPubKey); in cc3xx_internal_rsa_verify() 288 err = cc3xx_rsa_psa_pub_to_cc_pub(key_buffer, key_length, pUserPubKey); in cc3xx_internal_rsa_verify() 322 const uint8_t *key_buffer, in cc3xx_internal_rsa_sign() argument 362 err = cc3xx_rsa_psa_priv_to_cc_priv(key_buffer, key_length, in cc3xx_internal_rsa_sign()
|
| D | cc3xx_internal_chacha20_poly1305.c | 27 cryptoDirection_t direction, const uint8_t *key_buffer, in chacha20_poly1305_crypt_and_tag() argument 57 status = cc3xx_chacha20_setkey(&context, key_buffer, key_buffer_size); in chacha20_poly1305_crypt_and_tag() 392 const psa_key_attributes_t *attributes, const uint8_t *key_buffer, in cc3xx_encrypt_chacha20_poly1305() argument 408 CRYPTO_DIRECTION_ENCRYPT, key_buffer, key_buffer_size, plaintext_length, in cc3xx_encrypt_chacha20_poly1305() 415 const psa_key_attributes_t *attributes, const uint8_t *key_buffer, in cc3xx_decrypt_chacha20_poly1305() argument 439 CRYPTO_DIRECTION_DECRYPT, key_buffer, key_buffer_size, in cc3xx_decrypt_chacha20_poly1305()
|
| /trusted-firmware-m-latest/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/include/ |
| D | cc3xx_psa_mac.h | 40 const uint8_t *key_buffer, 56 const uint8_t *key_buffer, 125 const uint8_t *key_buffer,
|
| D | cc3xx_psa_aead.h | 47 const uint8_t *key_buffer, size_t key_buffer_size, 76 const uint8_t *key_buffer, size_t key_buffer_size, 102 const uint8_t *key_buffer, size_t key_buffer_size, 124 const uint8_t *key_buffer, size_t key_buffer_size,
|
| D | cc3xx_psa_key_generation.h | 37 uint8_t *key_buffer, size_t key_buffer_size, 53 const uint8_t *key_buffer,
|
| D | cc3xx_psa_asymmetric_encryption.h | 44 const uint8_t *key_buffer, 72 const uint8_t *key_buffer,
|
| D | cc3xx_psa_cipher.h | 149 const uint8_t *key_buffer, 178 const uint8_t *key_buffer,
|
| /trusted-firmware-m-latest/platform/ext/accelerator/cc312/cc312-rom/psa_driver_api/include/ |
| D | cc3xx_psa_mac.h | 40 const uint8_t *key_buffer, 56 const uint8_t *key_buffer, 125 const uint8_t *key_buffer,
|
| D | cc3xx_psa_aead.h | 48 const uint8_t *key_buffer, size_t key_buffer_size, 77 const uint8_t *key_buffer, size_t key_buffer_size, 103 const uint8_t *key_buffer, size_t key_buffer_size, 125 const uint8_t *key_buffer, size_t key_buffer_size,
|
| D | cc3xx_psa_key_generation.h | 39 uint8_t *key_buffer, size_t key_buffer_size, 55 const uint8_t *key_buffer,
|
| D | cc3xx_psa_asymmetric_encryption.h | 46 const uint8_t *key_buffer, 74 const uint8_t *key_buffer,
|
| D | cc3xx_psa_cipher.h | 149 const uint8_t *key_buffer, 178 const uint8_t *key_buffer,
|
| /trusted-firmware-m-latest/secure_fw/partitions/crypto/psa_driver_api/ |
| D | tfm_builtin_key_loader.c | 118 uint8_t *key_buffer, size_t key_buffer_size, size_t *key_buffer_length) in derive_subkey_into_buffer() argument 178 status = psa_export_key(output_key_id_local, key_buffer, key_buffer_size, key_buffer_length); in derive_subkey_into_buffer() 192 struct tfm_builtin_key_t *key_slot, uint8_t *key_buffer, in builtin_key_copy_to_buffer() argument 195 memcpy(key_buffer, key_slot->key, key_slot->key_len); in builtin_key_copy_to_buffer() 282 uint8_t *key_buffer, size_t key_buffer_size, size_t *key_buffer_length) in tfm_builtin_key_loader_get_builtin_key() argument 326 if (key_buffer == NULL || key_buffer_length == NULL) { in tfm_builtin_key_loader_get_builtin_key() 341 key_buffer, key_buffer_size, in tfm_builtin_key_loader_get_builtin_key() 344 err = builtin_key_copy_to_buffer(key_slot, key_buffer, key_buffer_size, in tfm_builtin_key_loader_get_builtin_key()
|
| /trusted-firmware-m-latest/lib/ext/mbedcrypto/ |
| D | 0005-Hardcode-CC3XX-entry-points.patch | 152 + key_buffer, 164 + key_buffer, 184 - key_buffer, 202 + key_buffer, 214 + key_buffer, 233 - key_buffer, 249 + key_buffer, 268 + key_buffer, 286 + attributes, key_buffer, key_buffer_size, 299 + key_buffer, [all …]
|
| /trusted-firmware-m-latest/bl2/src/ |
| D | thin_psa_crypto_core.c | 375 const uint8_t *key_buffer, size_t key_buffer_size, in psa_verify_hash_builtin() argument 386 key_buffer, key_buffer_size, in psa_verify_hash_builtin() 401 key_buffer, key_buffer_size, in psa_verify_hash_builtin() 413 (void) key_buffer; in psa_verify_hash_builtin() 426 const uint8_t *key_buffer, size_t key_buffer_size, in psa_driver_wrapper_export_public_key() argument 432 memcpy(data, key_buffer, key_buffer_size); in psa_driver_wrapper_export_public_key()
|