Home
last modified time | relevance | path

Searched refs:pCcPrivKey (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.c58 CCRsaPrivKey_t *pCcPrivKey; in KGCheckAndSetParamsRSA() local
98 pCcPrivKey = (CCRsaPrivKey_t*)pCcUserPrivKey->PrivateKeyDbBuff; in KGCheckAndSetParamsRSA()
143 pCcPrivKey->nSizeInBits = KeySize; in KGCheckAndSetParamsRSA()
196 CCRsaPrivKey_t *pCcPrivKey; in CC_RsaKgKeyPairGenerate() local
211 pCcPrivKey = ( CCRsaPrivKey_t *)pCcUserPrivKey->PrivateKeyDbBuff; in CC_RsaKgKeyPairGenerate()
214 …CC_PalMemCopy(pCcPrivKey->PriveKeyDb.NonCrt.e, pCcPubKey->e, ROUNDUP_BYTES_TO_32BIT_WORD(PubExpSiz… in CC_RsaKgKeyPairGenerate()
215 pCcPrivKey->PriveKeyDb.NonCrt.eSizeInBits = pCcPubKey->eSizeInBits; in CC_RsaKgKeyPairGenerate()
221 pCcPrivKey->OperationMode = CC_RSA_NoCrt; in CC_RsaKgKeyPairGenerate()
241 pCcPrivKey, in CC_RsaKgKeyPairGenerate()
254 …CC_CommonReverseMemcpy(rsaKgOutParams.dPrivExponent, (uint8_t*)pCcPrivKey->PriveKeyDb.NonCrt.d, Ke… in CC_RsaKgKeyPairGenerate()
[all …]
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/
Dcc3xx_psa_key_generation.c152 CCRsaPrivKey_t *pCcPrivKey = NULL; in cc3xx_internal_gen_rsa_keypair() local
176 pCcPrivKey = (CCRsaPrivKey_t *)mbedtls_calloc(1, sizeof(CCRsaPrivKey_t)); in cc3xx_internal_gen_rsa_keypair()
177 if (pCcPrivKey == NULL) { in cc3xx_internal_gen_rsa_keypair()
185 mbedtls_free(pCcPrivKey); in cc3xx_internal_gen_rsa_keypair()
193 mbedtls_free(pCcPrivKey); in cc3xx_internal_gen_rsa_keypair()
214 pCcPrivKey->nSizeInBits = key_bits; in cc3xx_internal_gen_rsa_keypair()
218 pCcPrivKey->OperationMode = CC_RSA_NoCrt; /* default mode */ in cc3xx_internal_gen_rsa_keypair()
219 pCcPrivKey->PriveKeyDb.NonCrt.eSizeInBits = pCcPubKey->eSizeInBits; in cc3xx_internal_gen_rsa_keypair()
220 pCcPrivKey->PriveKeyDb.NonCrt.e[0] = pubExp; in cc3xx_internal_gen_rsa_keypair()
231 cc_err = RsaCalculateNandD(pCcPubKey, pCcPrivKey, pKeyGenData, in cc3xx_internal_gen_rsa_keypair()
[all …]
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/
Drsa_alt.c349 CCRsaPrivKey_t *pCcPrivKey = NULL; in mbedtls_rsa_gen_key() local
396pCcPrivKey = (CCRsaPrivKey_t *)mbedtls_calloc(CALC_32BIT_WORDS_FROM_BYTES(sizeof(CCRsaPrivKey_t)),… in mbedtls_rsa_gen_key()
397 if (pCcPrivKey == NULL) { in mbedtls_rsa_gen_key()
418 pCcPrivKey->nSizeInBits = nbits; in mbedtls_rsa_gen_key()
422 pCcPrivKey->OperationMode = CC_RSA_NoCrt; /* default mode */ in mbedtls_rsa_gen_key()
423 pCcPrivKey->PriveKeyDb.NonCrt.eSizeInBits = pCcPubKey->eSizeInBits; in mbedtls_rsa_gen_key()
424 pCcPrivKey->PriveKeyDb.NonCrt.e[0] = pubExp; in mbedtls_rsa_gen_key()
442 pCcPrivKey, in mbedtls_rsa_gen_key()
466 …MBEDTLS_RSA_CHK( mbedtls_rsa_uint32_buf_to_mpi( &pCtx->MBEDTLS_PRIVATE(D), pCcPrivKey->PriveKeyDb.… in mbedtls_rsa_gen_key()
476 err = PkiCalcNp(((RsaPrivKeyDb_t *)(pCcPrivKey->ccRSAPrivKeyIntBuff))->Crt.PP,/*out*/ in mbedtls_rsa_gen_key()
[all …]
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/rsa/
Drsa.h94 CCRsaPrivKey_t *pCcPrivKey, /*!< [in] pointer to the private key structure */
Drsa_genkey.c1340 … CCRsaPrivKey_t *pCcPrivKey, /*!< [in] pointer to the private key structure */ in RsaCalculateNandD() argument
1354 uint32_t *pPrivExp = pCcPrivKey->PriveKeyDb.NonCrt.d; in RsaCalculateNandD()
1391 CC_PalMemCopy(pCcPrivKey->n, pCcPubKey->n, pCcPubKey->nSizeInBits / CC_BITS_IN_BYTE); in RsaCalculateNandD()
1393 if (pCcPrivKey->OperationMode == CC_RSA_NoCrt) { in RsaCalculateNandD()
1474 pCcPrivKey->PriveKeyDb.NonCrt.dSizeInBits = in RsaCalculateNandD()
1475 CC_CommonGetWordsCounterEffectiveSizeInBits(pCcPrivKey->PriveKeyDb.NonCrt.d, in RsaCalculateNandD()