Home
last modified time | relevance | path

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

/trusted-firmware-m-3.4.0/interface/include/psa/
Dcrypto_sizes.h33 #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/
Dcc3xx_psa_key_generation.c88 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()
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.c196 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()
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.c72 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/
Dattest_asymmetric_key.c31 #define ECC_P256_COORD_SIZE PSA_BITS_TO_BYTES(256) /* 256 bits -> 32 bytes */