Searched refs:pKeyGenData (Results 1 – 3 of 3) sorted by relevance
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/ |
D | cc3xx_psa_key_generation.c | 154 CCRsaKgData_t *pKeyGenData = NULL; in cc3xx_internal_gen_rsa_keypair() local 183 pKeyGenData = (CCRsaKgData_t *)mbedtls_calloc(1, sizeof(CCRsaKgData_t)); in cc3xx_internal_gen_rsa_keypair() 184 if (pKeyGenData == NULL) { in cc3xx_internal_gen_rsa_keypair() 192 mbedtls_free(pKeyGenData); in cc3xx_internal_gen_rsa_keypair() 226 (uint32_t *)&pubExp, pKeyGenData); in cc3xx_internal_gen_rsa_keypair() 232 cc_err = RsaCalculateNandD(pCcPubKey, pCcPrivKey, pKeyGenData, in cc3xx_internal_gen_rsa_keypair() 256 pKeyGenData->KGData.p, key_bits/2); /*in*/ in cc3xx_internal_gen_rsa_keypair() 263 pKeyGenData->KGData.q, key_bits/2); /*in*/ in cc3xx_internal_gen_rsa_keypair() 271 (uint32_t *)&pubExp, pubExpSizeBits, key_bits, pKeyGenData->KGData.p, in cc3xx_internal_gen_rsa_keypair() 272 pKeyGenData->KGData.q, pCcPrivKey->PriveKeyDb.Crt.dP, in cc3xx_internal_gen_rsa_keypair() [all …]
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/rsa/ |
D | rsa_genkey.c | 1341 …CCRsaKgData_t *pKeyGenData, /*!< [in] pointer to a structure required for the KeyGen operation, … in RsaCalculateNandD() argument 1375 PkaCopyDataIntoPkaReg(rP/*dstReg*/, LEN_ID_MAX_BITS, pKeyGenData->KGData.p/*src_ptr*/, in RsaCalculateNandD() 1378 PkaCopyDataIntoPkaReg(rQ/*dstReg*/, LEN_ID_MAX_BITS, pKeyGenData->KGData.q/*src_ptr*/, in RsaCalculateNandD() 1748 CCRsaKgData_t *pKeyGenData) /*!< [in] Temporary buffer for internal use. */ in RsaGenPandQ() argument 1763 pPrimeP = pKeyGenData->KGData.p; in RsaGenPandQ() 1764 pPrimeQ = pKeyGenData->KGData.q; in RsaGenPandQ() 1767 … CC_PalMemCopy( RSA_KG_debugPvect, (uint8_t*)pKeyGenData->KGData.p, KeySize/(2*CC_BITS_IN_BYTE) ); in RsaGenPandQ() 1768 … CC_PalMemCopy( RSA_KG_debugQvect, (uint8_t*)pKeyGenData->KGData.q, KeySize/(2*CC_BITS_IN_BYTE) ); in RsaGenPandQ() 1772 … CC_PalMemCopy( (uint8_t*)pKeyGenData->KGData.p, RSA_KG_debugPvect, KeySize/(2*CC_BITS_IN_BYTE) ); in RsaGenPandQ() 1773 … CC_PalMemCopy( (uint8_t*)pKeyGenData->KGData.q, RSA_KG_debugQvect, KeySize/(2*CC_BITS_IN_BYTE) ); in RsaGenPandQ() [all …]
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/ |
D | rsa_alt.c | 350 CCRsaKgData_t *pKeyGenData = NULL; in mbedtls_rsa_gen_key() local 401 …pKeyGenData = (CCRsaKgData_t *)mbedtls_calloc(CALC_32BIT_WORDS_FROM_BYTES(sizeof(CCRsaKgData_t)), … in mbedtls_rsa_gen_key() 402 if (pKeyGenData == NULL) { in mbedtls_rsa_gen_key() 434 pKeyGenData ); in mbedtls_rsa_gen_key() 443 pKeyGenData, in mbedtls_rsa_gen_key() 472 …MBEDTLS_RSA_CHK( mbedtls_rsa_uint32_buf_to_mpi( &pCtx->MBEDTLS_PRIVATE(P), pKeyGenData->KGData.p, … in mbedtls_rsa_gen_key() 473 …MBEDTLS_RSA_CHK( mbedtls_rsa_uint32_buf_to_mpi( &pCtx->MBEDTLS_PRIVATE(Q), pKeyGenData->KGData.q, … in mbedtls_rsa_gen_key() 477 pKeyGenData->KGData.p, nbits/2); /*in*/ in mbedtls_rsa_gen_key() 482 pKeyGenData->KGData.q, nbits/2); /*in*/ in mbedtls_rsa_gen_key() 495 pKeyGenData->KGData.p, pKeyGenData->KGData.q, in mbedtls_rsa_gen_key() [all …]
|