Home
last modified time | relevance | path

Searched refs:KGData (Results 1 – 7 of 7) sorted by relevance

/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/rsa/
Dccsw_rsa_kg.c208 …or = CC_RsaGenerateVectorInRangeX931(rndContext_ptr, KeySizeInWords / 2, KeyGenData_ptr->KGData.p); in CC_SwRsaKgGenerateKeyPair()
213 …or = CC_RsaGenerateVectorInRangeX931(rndContext_ptr, KeySizeInWords / 2, KeyGenData_ptr->KGData.q); in CC_SwRsaKgGenerateKeyPair()
220 CC_PalMemCopy( RSA_KG_debugPvect, (uint8_t*)KeyGenData_ptr->KGData.p, KeySizeInBytes / 2 ); in CC_SwRsaKgGenerateKeyPair()
221 CC_PalMemCopy( RSA_KG_debugQvect, (uint8_t*)KeyGenData_ptr->KGData.q, KeySizeInBytes / 2); in CC_SwRsaKgGenerateKeyPair()
225 CC_PalMemCopy( (uint8_t*)KeyGenData_ptr->KGData.p, RSA_KG_debugPvect, KeySizeInBytes / 2 ); in CC_SwRsaKgGenerateKeyPair()
226 CC_PalMemCopy( (uint8_t*)KeyGenData_ptr->KGData.q, RSA_KG_debugQvect, KeySizeInBytes / 2 ); in CC_SwRsaKgGenerateKeyPair()
232 CC_COMMON_INVERSE_UINT32_IN_ARRAY( KeyGenData_ptr->KGData.p, KeySizeInWords / 2); in CC_SwRsaKgGenerateKeyPair()
233 CC_COMMON_INVERSE_UINT32_IN_ARRAY( KeyGenData_ptr->KGData.q, KeySizeInWords / 2 ); in CC_SwRsaKgGenerateKeyPair()
422 …or = CC_RsaGenerateVectorInRangeX931(rndContext_ptr, KeySizeInWords / 2, KeyGenData_ptr->KGData.p); in CC_SwRsaKgGenerateKeyPairCRT()
427 …or = CC_RsaGenerateVectorInRangeX931(rndContext_ptr, KeySizeInWords / 2, KeyGenData_ptr->KGData.q); in CC_SwRsaKgGenerateKeyPairCRT()
[all …]
Dcc_rsa_kg.c252 …CC_CommonReverseMemcpy(rsaKgOutParams.pPrim, (uint8_t*)KeyGenData_ptr->KGData.p, KeySize/(2*CC_BIT… in CC_RsaKgKeyPairGenerate()
253 …CC_CommonReverseMemcpy(rsaKgOutParams.qPrim, (uint8_t*)KeyGenData_ptr->KGData.q, KeySize/(2*CC_BIT… in CC_RsaKgKeyPairGenerate()
405 KeyGenData_ptr->KGData.p, KeyGenData_ptr->KGData.q, in CC_RsaKgKeyPairCrtGenerate()
416 …CC_CommonReverseMemcpy(rsaKgOutParams.pPrim, (uint8_t*)KeyGenData_ptr->KGData.p,KeySize/(2*CC_BITS… in CC_RsaKgKeyPairCrtGenerate()
417 …CC_CommonReverseMemcpy(rsaKgOutParams.qPrim, (uint8_t*)KeyGenData_ptr->KGData.q, KeySize/(2*CC_BIT… in CC_RsaKgKeyPairCrtGenerate()
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()
Dccsw_rsa_types.h231 }KGData; member
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/
Dcc3xx_psa_key_generation.c256 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()
281 pKeyGenData->KGData.p, pKeyGenData->KGData.q, in cc3xx_internal_gen_rsa_keypair()
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/rsa/
Drsa_genkey.c1375 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()
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()
1778 CC_COMMON_INVERSE_UINT32_IN_ARRAY( pKeyGenData->KGData.p, KeySize/(2*CC_BITS_IN_32BIT_WORD) ); in RsaGenPandQ()
1779 CC_COMMON_INVERSE_UINT32_IN_ARRAY( pKeyGenData->KGData.q, KeySize/(2*CC_BITS_IN_32BIT_WORD) ); in RsaGenPandQ()
[all …]
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/shared/include/crypto_api/
Dcc_rsa_types.h352 }KGData; member
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/
Drsa_alt.c472 …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()
512 … CC_CommonReverseMemcpy( rsaKgOutParams.pPrim, (uint8_t*)pKeyGenData->KGData.p, keySizeBytes/2 ); in mbedtls_rsa_gen_key()
513 … CC_CommonReverseMemcpy( rsaKgOutParams.qPrim, (uint8_t*)pKeyGenData->KGData.q, keySizeBytes/2 ); in mbedtls_rsa_gen_key()