Searched refs:PSA_BITS_TO_BYTES (Results 1 – 9 of 9) sorted by relevance
/trusted-firmware-m-3.4.0/interface/include/psa/ |
D | crypto_sizes.h | 33 #define PSA_BITS_TO_BYTES(bits) (((bits) + 7) / 8) macro 561 (PSA_BITS_TO_BYTES(curve_bits) * 2) 589 (PSA_KEY_TYPE_IS_RSA(key_type) ? ((void)alg, PSA_BITS_TO_BYTES(key_bits)) : \ 604 (PSA_BITS_TO_BYTES(PSA_VENDOR_RSA_MAX_KEY_BITS) > PSA_VENDOR_ECDSA_SIGNATURE_MAX_SIZE ? \ 605 PSA_BITS_TO_BYTES(PSA_VENDOR_RSA_MAX_KEY_BITS) : \ 635 ((void)alg, PSA_BITS_TO_BYTES(key_bits)) : \ 645 (PSA_BITS_TO_BYTES(PSA_VENDOR_RSA_MAX_KEY_BITS)) 674 PSA_BITS_TO_BYTES(key_bits) - PSA_RSA_MINIMUM_PADDING_SIZE(alg) : \ 685 (PSA_BITS_TO_BYTES(PSA_VENDOR_RSA_MAX_KEY_BITS)) 788 (2 * PSA_BITS_TO_BYTES(key_bits) + 1) [all …]
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/ |
D | cc3xx_psa_key_generation.c | 88 if (key_buffer_size < PSA_BITS_TO_BYTES(key_bits)) { in cc3xx_internal_gen_ecc_wstr_keypair() 131 PSA_BITS_TO_BYTES(key_bits)); in cc3xx_internal_gen_ecc_wstr_keypair() 133 *key_buffer_length = PSA_BITS_TO_BYTES(key_bits); in cc3xx_internal_gen_ecc_wstr_keypair() 190 d_buff = (uint32_t *)mbedtls_calloc(1, PSA_BITS_TO_BYTES(key_bits)); in cc3xx_internal_gen_rsa_keypair() 293 CC_PalMemSetZero(d_buff, PSA_BITS_TO_BYTES(key_bits)); in cc3xx_internal_gen_rsa_keypair()
|
D | cc3xx_internal_drbg_util.c | 100 hash_bytes_used = PSA_BITS_TO_BYTES(pDomain->ordSizeInBits); in cc3xx_hmac_drbg_init_with_params()
|
D | cc3xx_psa_asymmetric_signature.c | 196 if (signature_size < (2*PSA_BITS_TO_BYTES(pDomain->ordSizeInBits))) { in cc3xx_internal_ecdsa_sign() 341 if (PSA_BITS_TO_BYTES(key_bits) < in cc3xx_internal_rsa_sign() 394 size_t output_len = PSA_BITS_TO_BYTES(key_bits); in cc3xx_internal_rsa_sign()
|
D | cc3xx_psa_asymmetric_encryption.c | 120 *output_length = PSA_BITS_TO_BYTES( in cc3xx_internal_rsa_encrypt()
|
D | cc3xx_psa_mac.c | 100 CC_PalMemCopy(ctx->keyBuf, key, PSA_BITS_TO_BYTES(keybits)); in cmac_setkey()
|
D | cc3xx_internal_gcm.c | 79 CC_PalMemCopy(ctx->keyBuf, key, PSA_BITS_TO_BYTES(key_bits)); in gcm_setkey()
|
D | cc3xx_internal_ccm.c | 72 CC_PalMemCopy(ctx->keyBuf, key, PSA_BITS_TO_BYTES(key_bits)); in ccm_setkey()
|
/trusted-firmware-m-3.4.0/secure_fw/partitions/initial_attestation/ |
D | attest_asymmetric_key.c | 31 #define ECC_P256_COORD_SIZE PSA_BITS_TO_BYTES(256) /* 256 bits -> 32 bytes */
|