Home
last modified time | relevance | path

Searched refs:nSizeInBits (Results 1 – 20 of 20) sorted by relevance

/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/rsa/
Drsa_private.c55 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()
Drsa_public.c46 pPubKey->nSizeInBits); in RsaInitPubKeyDb()
77 nSizeInWords = CALC_FULL_32BIT_WORDS(pPubKey->nSizeInBits); in RsaExecPubKeyExp()
83 error = PkaInitAndMutexLock(pPubKey->nSizeInBits, &pkaReqRegs); in RsaExecPubKeyExp()
Drsa_genkey.c1391 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()
Drsa.h101 … 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/
Dccsw_rsa_types.h79 uint32_t nSizeInBits; member
168 uint32_t nSizeInBits; member
Dcc_rsa_pss21_util.c91 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()
Dccsw_rsa_kg.c191 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()
Dcc_rsa_verify.c156 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()
Dcc_rsa_prim.c120 nSizeInBytes = CALC_FULL_BYTES(PubKey_ptr->nSizeInBits); in CC_RsaPrimEncrypt()
264 nSizeInBytes = CALC_FULL_BYTES(PrivKey_ptr->nSizeInBits); in CC_RsaPrimDecrypt()
Dcc_rsa_kg.c142 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()
Dcc_rsa_sign.c149 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()
Dcc_rsa_build.c173 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()
Dcc_rsa_schemes.c157 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/
Dcc_rsa_types.h210 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/
Dcc3xx_psa_key_generation.c213 pCcPubKey->nSizeInBits = key_bits; in cc3xx_internal_gen_rsa_keypair()
215 pCcPrivKey->nSizeInBits = key_bits; in cc3xx_internal_gen_rsa_keypair()
Dcc3xx_psa_asymmetric_encryption.c121 ((CCRsaPubKey_t *)pUserPubKey->PublicKeyDbBuff)->nSizeInBits); in cc3xx_internal_rsa_encrypt()
Dcc3xx_psa_asymmetric_signature.c298 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/
Drsa_alt.c416 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/
Dcc_dh.c802 tmpPubKey_ptr->nSizeInBits = modPsizeBits; in CC_DhCheckPubKey()
Dcc_dh_kg.c875 expTempBuff_ptr->PubKey.nSizeInBits = modSizeBits; in DhX942CreateGenerator()