/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/rsa/ |
D | rsa_private.c | 55 modSizeWords = CALC_FULL_32BIT_WORDS(pPrivKey->nSizeInBits); in RsaExecPrivKeyExpNonCrt() 63 error = PkaInitAndMutexLock(pPrivKey->nSizeInBits,&pkaReqRegs); in RsaExecPrivKeyExpNonCrt() 143 modSizeWords = CALC_FULL_32BIT_WORDS(pPrivKey->nSizeInBits); in RsaExecPrivKeyExpCrt() 148 error = PkaInitAndMutexLock(pPrivKey->nSizeInBits, &pkaReqRegs); in RsaExecPrivKeyExpCrt() 237 PkaClearPkaRegWords(rT, pPrivKey->nSizeInBits); in RsaExecPrivKeyExpCrt() 267 if (pPrivKey->nSizeInBits > CC_RSA_MAX_VALID_KEY_SIZE_VALUE_IN_BITS) { in RsaInitPrivKeyDb() 277 pPrivKey->nSizeInBits); /*in*/ in RsaInitPrivKeyDb()
|
D | rsa_public.c | 46 pPubKey->nSizeInBits); in RsaInitPubKeyDb() 77 nSizeInWords = CALC_FULL_32BIT_WORDS(pPubKey->nSizeInBits); in RsaExecPubKeyExp() 83 error = PkaInitAndMutexLock(pPubKey->nSizeInBits, &pkaReqRegs); in RsaExecPubKeyExp()
|
D | rsa_genkey.c | 1391 CC_PalMemCopy(pCcPrivKey->n, pCcPubKey->n, pCcPubKey->nSizeInBits / CC_BITS_IN_BYTE); in RsaCalculateNandD() 1476 … (uint16_t)(CALC_FULL_32BIT_WORDS(pCcPubKey->nSizeInBits))); in RsaCalculateNandD() 1497 uint32_t nSizeInBits, /*!< [in/out] Required size of the key in bits. */ in RsaKgFindPrime() argument 1511 primeSizeInBits = nSizeInBits / 2; in RsaKgFindPrime() 1529 if (nSizeInBits <= CC_RSA_FIPS_KEY_SIZE_1024_BITS) { in RsaKgFindPrime() 1533 } else if (nSizeInBits <= CC_RSA_FIPS_KEY_SIZE_2048_BITS) { in RsaKgFindPrime() 1551 PkaSetLenIds(nSizeInBits/2, LEN_ID_PQ_BITS); in RsaKgFindPrime() 1552 PkaSetLenIds(GET_FULL_OP_SIZE_BITS(nSizeInBits/2), LEN_ID_PQ_PKA_REG_BITS); in RsaKgFindPrime() 1618 … uint32_t nSizeInBits, /*!< [in] Size of the key modulus in bits. */ in RsaCalculateCrtParams() argument 1634 primeSizeInWords = CALC_FULL_32BIT_WORDS(nSizeInBits/2); in RsaCalculateCrtParams()
|
D | rsa.h | 101 … uint32_t nSizeInBits, /*!< [in] Size of the key modulus in bits. */
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/rsa/ |
D | ccsw_rsa_types.h | 79 uint32_t nSizeInBits; member 168 uint32_t nSizeInBits; member
|
D | cc_rsa_pss21_util.c | 91 PubNNewSizeBytes = (PubKey_ptr->nSizeInBits - 1)/8; in RsaPssVerify21() 93 …if (((PubKey_ptr->nSizeInBits - 1) % 8) != 0) {/*Rounding Only in case that (PubNSizebits -1) is n… in RsaPssVerify21() 338 PrvNNewSizeBytes = (PrivKey_ptr->nSizeInBits -1)/8; in RsaPssSign21() 339 PrvNSizebits = PrivKey_ptr->nSizeInBits; in RsaPssSign21()
|
D | ccsw_rsa_kg.c | 191 PubKey_ptr->nSizeInBits = KeySize; in CC_SwRsaKgGenerateKeyPair() 192 PrivKey_ptr->nSizeInBits = KeySize; in CC_SwRsaKgGenerateKeyPair() 404 PubKey_ptr->nSizeInBits = KeySize; in CC_SwRsaKgGenerateKeyPairCRT() 405 PrivKey_ptr->nSizeInBits = KeySize; in CC_SwRsaKgGenerateKeyPairCRT()
|
D | cc_rsa_verify.c | 156 ModulusSizeBytes = (PubKey_ptr->nSizeInBits - 1) / 8; in CC_RsaVerifyInit() 157 if ((PubKey_ptr->nSizeInBits - 1) % 8) in CC_RsaVerifyInit() 262 …tr->nSizeInBytes = CALC_FULL_BYTES(((CCRsaPubKey_t*)UserPubKey_ptr->PublicKeyDbBuff)->nSizeInBits); in CC_RsaVerifyInit() 453 modSizeBytes = (uint16_t)(CALC_FULL_BYTES(PubKey_ptr->nSizeInBits)); in CC_RsaVerifyFinish()
|
D | cc_rsa_prim.c | 120 nSizeInBytes = CALC_FULL_BYTES(PubKey_ptr->nSizeInBits); in CC_RsaPrimEncrypt() 264 nSizeInBytes = CALC_FULL_BYTES(PrivKey_ptr->nSizeInBits); in CC_RsaPrimDecrypt()
|
D | cc_rsa_kg.c | 142 pCcPubKey->nSizeInBits = KeySize; in KGCheckAndSetParamsRSA() 143 pCcPrivKey->nSizeInBits = KeySize; in KGCheckAndSetParamsRSA() 424 …CC_PalMemCopy(pCcPrivKey->PriveKeyDb.Crt.P, KeyGenData_ptr->KGData.p, pCcPubKey->nSizeInBits / 16); in CC_RsaKgKeyPairCrtGenerate() 425 …CC_PalMemCopy(pCcPrivKey->PriveKeyDb.Crt.Q, KeyGenData_ptr->KGData.q, pCcPubKey->nSizeInBits / 16); in CC_RsaKgKeyPairCrtGenerate()
|
D | cc_rsa_sign.c | 149 ModulusSizeBytes = (uint16_t)((PrivKey_ptr->nSizeInBits -1) / 8); in CC_RsaSignInit() 150 if ((PrivKey_ptr->nSizeInBits -1) % 8) in CC_RsaSignInit() 469 K = (uint16_t)CALC_FULL_BYTES(PrivKey_ptr->nSizeInBits); in CC_RsaSignFinish()
|
D | cc_rsa_build.c | 173 PubKey_ptr->nSizeInBits = ModulusEffectiveSizeInBits; in CC_RsaPubKeyBuild() 396 PrivKey_ptr->nSizeInBits = ModulusEffectiveSizeInBits; in CC_RsaPrivKeyBuild() 678 PrivKey_ptr->nSizeInBits = ModulusEffectiveSizeInBits; in CC_RsaPrivKeyCrtBuild() 777 nSizeInBytes = CALC_FULL_BYTES(PubKey_ptr->nSizeInBits); in CC_RsaPubKeyGet()
|
D | cc_rsa_schemes.c | 157 K = (uint16_t)CALC_FULL_BYTES(PubKey_ptr->nSizeInBits); in CC_RsaSchemesEncrypt() 427 K = (uint16_t)(CALC_FULL_BYTES(PrivKey_ptr->nSizeInBits)); in CC_RsaSchemesDecrypt()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/shared/include/crypto_api/ |
D | cc_rsa_types.h | 210 uint32_t nSizeInBits; member 290 uint32_t nSizeInBits; member
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/ |
D | cc3xx_psa_key_generation.c | 213 pCcPubKey->nSizeInBits = key_bits; in cc3xx_internal_gen_rsa_keypair() 215 pCcPrivKey->nSizeInBits = key_bits; in cc3xx_internal_gen_rsa_keypair()
|
D | cc3xx_psa_asymmetric_encryption.c | 121 ((CCRsaPubKey_t *)pUserPubKey->PublicKeyDbBuff)->nSizeInBits); in cc3xx_internal_rsa_encrypt()
|
D | cc3xx_psa_asymmetric_signature.c | 298 if (signature_length != CALC_FULL_BYTES(pPubKey->nSizeInBits)) { in cc3xx_internal_rsa_verify()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/ |
D | rsa_alt.c | 416 pCcPubKey->nSizeInBits = nbits; in mbedtls_rsa_gen_key() 418 pCcPrivKey->nSizeInBits = nbits; in mbedtls_rsa_gen_key() 1220 PrivKey_ptr->nSizeInBits = ModulusEffectiveSizeInBits; in build_cc_priv_non_crt_key() 1443 PrivKey_ptr->nSizeInBits = ModulusEffectiveSizeInBits; in build_cc_priv_crt_key() 1568 PubKey_ptr->nSizeInBits = ModulusEffectiveSizeInBits; in build_cc_pubkey()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/dh/ |
D | cc_dh.c | 802 tmpPubKey_ptr->nSizeInBits = modPsizeBits; in CC_DhCheckPubKey()
|
D | cc_dh_kg.c | 875 expTempBuff_ptr->PubKey.nSizeInBits = modSizeBits; in DhX942CreateGenerator()
|