Home
last modified time | relevance | path

Searched refs:pCcPubKey (Results 1 – 5 of 5) sorted by relevance

/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/rsa/
Dcc_rsa_kg.c57 CCRsaPubKey_t *pCcPubKey; in KGCheckAndSetParamsRSA() local
97 pCcPubKey = (CCRsaPubKey_t*)pCcUserPubKey->PublicKeyDbBuff; in KGCheckAndSetParamsRSA()
113 pCcPubKey->e, sizeof(pCcPubKey->e), in KGCheckAndSetParamsRSA()
121pCcPubKey->eSizeInBits = CC_CommonGetWordsCounterEffectiveSizeInBits(pCcPubKey->e, (PubExpSizeInBy… in KGCheckAndSetParamsRSA()
124 if (pCcPubKey->eSizeInBits == 0 || pCcPubKey->eSizeInBits > 17) { /* MV - check if needed*/ in KGCheckAndSetParamsRSA()
131 if (pCcPubKey->e[0] != CC_RSA_KG_PUB_EXP_ALLOW_VAL_1 && in KGCheckAndSetParamsRSA()
132 pCcPubKey->e[0] != CC_RSA_KG_PUB_EXP_ALLOW_VAL_2 && in KGCheckAndSetParamsRSA()
133 pCcPubKey->e[0] != CC_RSA_KG_PUB_EXP_ALLOW_VAL_3) { in KGCheckAndSetParamsRSA()
142 pCcPubKey->nSizeInBits = KeySize; in KGCheckAndSetParamsRSA()
195 CCRsaPubKey_t *pCcPubKey; in CC_RsaKgKeyPairGenerate() local
[all …]
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/
Dcc3xx_psa_key_generation.c151 CCRsaPubKey_t *pCcPubKey = NULL; in cc3xx_internal_gen_rsa_keypair() local
171 pCcPubKey = (CCRsaPubKey_t *)mbedtls_calloc(1, sizeof(CCRsaPubKey_t)); in cc3xx_internal_gen_rsa_keypair()
172 if (pCcPubKey == NULL) { in cc3xx_internal_gen_rsa_keypair()
178 mbedtls_free(pCcPubKey); in cc3xx_internal_gen_rsa_keypair()
184 mbedtls_free(pCcPubKey); in cc3xx_internal_gen_rsa_keypair()
192 mbedtls_free(pCcPubKey); in cc3xx_internal_gen_rsa_keypair()
212 pCcPubKey->nSizeInBits = key_bits; in cc3xx_internal_gen_rsa_keypair()
213 pCcPubKey->eSizeInBits = pubExpSizeBits; in cc3xx_internal_gen_rsa_keypair()
215 pCcPubKey->e[0] = pubExp; in cc3xx_internal_gen_rsa_keypair()
219 pCcPrivKey->PriveKeyDb.NonCrt.eSizeInBits = pCcPubKey->eSizeInBits; in cc3xx_internal_gen_rsa_keypair()
[all …]
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/
Drsa_alt.c348 CCRsaPubKey_t *pCcPubKey = NULL; in mbedtls_rsa_gen_key() local
391pCcPubKey = (CCRsaPubKey_t *)mbedtls_calloc(CALC_32BIT_WORDS_FROM_BYTES(sizeof(CCRsaPubKey_t)), si… in mbedtls_rsa_gen_key()
392 if (pCcPubKey == NULL) { in mbedtls_rsa_gen_key()
416 pCcPubKey->nSizeInBits = nbits; in mbedtls_rsa_gen_key()
417 pCcPubKey->eSizeInBits = pubExpSizeBits; in mbedtls_rsa_gen_key()
419 pCcPubKey->e[0] = pubExp; in mbedtls_rsa_gen_key()
423 pCcPrivKey->PriveKeyDb.NonCrt.eSizeInBits = pCcPubKey->eSizeInBits; in mbedtls_rsa_gen_key()
441 pCcPubKey, in mbedtls_rsa_gen_key()
454 err = PkiCalcNp(((RsaPubKeyDb_t*)(pCcPubKey->ccRSAIntBuff))->NP, /*out*/ in mbedtls_rsa_gen_key()
455 pCcPubKey->n, nbits); /*in*/ in mbedtls_rsa_gen_key()
[all …]
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/rsa/
Drsa.h93 CCError_t RsaCalculateNandD(CCRsaPubKey_t *pCcPubKey, /*!< [in] pointer to the public key struct…
Drsa_genkey.c1339 CCError_t RsaCalculateNandD(CCRsaPubKey_t *pCcPubKey, /*!< [in] pointer to the public key structure… in RsaCalculateNandD() argument
1365 CC_PalMemSetZero( pCcPubKey->n, CC_32BIT_WORD_SIZE*CC_RSA_MAXIMUM_MOD_BUFFER_SIZE_IN_WORDS ); in RsaCalculateNandD()
1390 PkaCopyDataFromPkaReg(pCcPubKey->n, 2*primeSizeInWords, r0/*srcReg*/); in RsaCalculateNandD()
1391 CC_PalMemCopy(pCcPrivKey->n, pCcPubKey->n, pCcPubKey->nSizeInBits / CC_BITS_IN_BYTE); in RsaCalculateNandD()
1439 PkaCopyDataIntoPkaReg(r0/*dstReg*/, LEN_ID_MAX_BITS, pCcPubKey->e/*src_ptr*/, in RsaCalculateNandD()
1440 CALC_FULL_32BIT_WORDS(pCcPubKey->eSizeInBits)); in RsaCalculateNandD()
1476 … (uint16_t)(CALC_FULL_32BIT_WORDS(pCcPubKey->nSizeInBits))); in RsaCalculateNandD()