Searched refs:PSA_BITS_TO_BYTES (Results 1 – 9 of 9) sorted by relevance
/trusted-firmware-m-3.6.0/interface/include/psa/ |
D | crypto_sizes.h | 33 #define PSA_BITS_TO_BYTES(bits) (((bits) + 7u) / 8u) macro 616 (PSA_BITS_TO_BYTES(curve_bits) * 2u) 644 (PSA_KEY_TYPE_IS_RSA(key_type) ? ((void) alg, PSA_BITS_TO_BYTES(key_bits)) : \ 666 (PSA_BITS_TO_BYTES(PSA_VENDOR_RSA_MAX_KEY_BITS) > PSA_SIGNATURE_MAX_SIZE) 668 #define PSA_SIGNATURE_MAX_SIZE PSA_BITS_TO_BYTES(PSA_VENDOR_RSA_MAX_KEY_BITS) 698 ((void) alg, PSA_BITS_TO_BYTES(key_bits)) : \ 708 (PSA_BITS_TO_BYTES(PSA_VENDOR_RSA_MAX_KEY_BITS)) 737 PSA_BITS_TO_BYTES(key_bits) - PSA_RSA_MINIMUM_PADDING_SIZE(alg) : \ 748 (PSA_BITS_TO_BYTES(PSA_VENDOR_RSA_MAX_KEY_BITS)) 851 (2u * PSA_BITS_TO_BYTES(key_bits) + 1u) [all …]
|
/trusted-firmware-m-3.6.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() 130 PSA_BITS_TO_BYTES(key_bits)); in cc3xx_internal_gen_ecc_wstr_keypair() 132 *key_buffer_length = PSA_BITS_TO_BYTES(key_bits); in cc3xx_internal_gen_ecc_wstr_keypair() 189 d_buff = (uint32_t *)mbedtls_calloc(1, PSA_BITS_TO_BYTES(key_bits)); in cc3xx_internal_gen_rsa_keypair() 292 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 | 191 if (signature_size < (2*PSA_BITS_TO_BYTES(pDomain->ordSizeInBits))) { in cc3xx_internal_ecdsa_sign() 338 if (PSA_BITS_TO_BYTES(key_bits) < in cc3xx_internal_rsa_sign() 391 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 | 70 CC_PalMemCopy(ctx->keyBuf, key, PSA_BITS_TO_BYTES(key_bits)); in ccm_setkey()
|
/trusted-firmware-m-3.6.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 */
|