Home
last modified time | relevance | path

Searched refs:PSA_BITS_TO_BYTES (Results 1 – 9 of 9) sorted by relevance

/trusted-firmware-m-3.6.0/interface/include/psa/
Dcrypto_sizes.h33 #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/
Dcc3xx_psa_key_generation.c88 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()
Dcc3xx_internal_drbg_util.c100 hash_bytes_used = PSA_BITS_TO_BYTES(pDomain->ordSizeInBits); in cc3xx_hmac_drbg_init_with_params()
Dcc3xx_psa_asymmetric_signature.c191 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()
Dcc3xx_psa_asymmetric_encryption.c120 *output_length = PSA_BITS_TO_BYTES( in cc3xx_internal_rsa_encrypt()
Dcc3xx_psa_mac.c100 CC_PalMemCopy(ctx->keyBuf, key, PSA_BITS_TO_BYTES(keybits)); in cmac_setkey()
Dcc3xx_internal_gcm.c79 CC_PalMemCopy(ctx->keyBuf, key, PSA_BITS_TO_BYTES(key_bits)); in gcm_setkey()
Dcc3xx_internal_ccm.c70 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/
Dattest_asymmetric_key.c31 #define ECC_P256_COORD_SIZE PSA_BITS_TO_BYTES(256) /* 256 bits -> 32 bytes */