/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/rsa/ |
D | rsa_private.c | 154 PkaSetLenIds(pPrivKey->PriveKeyDb.Crt.PSizeInBits, LEN_ID_PQ_BITS); in RsaExecPrivKeyExpCrt() 157 pqSizeInWords = CALC_FULL_32BIT_WORDS(pPrivKey->PriveKeyDb.Crt.PSizeInBits); in RsaExecPrivKeyExpCrt() 162 …PkaCopyDataIntoPkaReg( rN/*0 dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pPrivKey->PriveKeyDb.Crt.Q/*src_p… in RsaExecPrivKeyExpCrt() 164 …PkaCopyDataIntoPkaReg( rD/*2 dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pPrivKey->PriveKeyDb.Crt.dQ/*src_… in RsaExecPrivKeyExpCrt() 166 …/, LEN_ID_MAX_BITS/*LenID*/, ((RsaPrivKeyDb_t*)(pPrivKey->ccRSAPrivKeyIntBuff))->Crt.QP/*src_ptr*/, in RsaExecPrivKeyExpCrt() 183 …PkaCopyDataIntoPkaReg(rQ/*6 dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pPrivKey->PriveKeyDb.Crt.P/*src_pt… in RsaExecPrivKeyExpCrt() 192 …/, LEN_ID_MAX_BITS/*LenID*/, ((RsaPrivKeyDb_t*)(pPrivKey->ccRSAPrivKeyIntBuff))->Crt.PP/*src_ptr*/, in RsaExecPrivKeyExpCrt() 196 …PkaCopyDataIntoPkaReg(rD/*2 dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pPrivKey->PriveKeyDb.Crt.dP/*src_p… in RsaExecPrivKeyExpCrt() 199 …PkaCopyDataIntoPkaReg(rqInv/*7 dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pPrivKey->PriveKeyDb.Crt.qInv/*… in RsaExecPrivKeyExpCrt() 284 if (pPrivKey->PriveKeyDb.Crt.PSizeInBits > CC_RSA_MAX_VALID_KEY_SIZE_VALUE_IN_BITS/2 || in RsaInitPrivKeyDb() [all …]
|
D | rsa_private.h | 43 }Crt; member
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/rsa/ |
D | cc_rsa_kg.c | 406 pCcPrivKey->PriveKeyDb.Crt.dP, in CC_RsaKgKeyPairCrtGenerate() 407 pCcPrivKey->PriveKeyDb.Crt.dQ, in CC_RsaKgKeyPairCrtGenerate() 408 pCcPrivKey->PriveKeyDb.Crt.qInv); 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() 431 pCcPrivKey->PriveKeyDb.Crt.PSizeInBits = in CC_RsaKgKeyPairCrtGenerate() 432 … CC_CommonGetWordsCounterEffectiveSizeInBits(pCcPrivKey->PriveKeyDb.Crt.P, (uint16_t)pSizeWords); in CC_RsaKgKeyPairCrtGenerate() 434 pCcPrivKey->PriveKeyDb.Crt.QSizeInBits = in CC_RsaKgKeyPairCrtGenerate() 435 … CC_CommonGetWordsCounterEffectiveSizeInBits(pCcPrivKey->PriveKeyDb.Crt.Q, (uint16_t)pSizeWords); in CC_RsaKgKeyPairCrtGenerate() 437 pCcPrivKey->PriveKeyDb.Crt.dPSizeInBits = in CC_RsaKgKeyPairCrtGenerate() [all …]
|
D | cc_rsa_build.c | 561 …Error = CC_CommonConvertMsbLsbBytesToLswMswWords(PrivKey_ptr->PriveKeyDb.Crt.P, buffSizeBytes, P_p… in CC_RsaPrivKeyCrtBuild() 567 …Error = CC_CommonConvertMsbLsbBytesToLswMswWords(PrivKey_ptr->PriveKeyDb.Crt.Q, buffSizeBytes, Q_p… in CC_RsaPrivKeyCrtBuild() 573 …Error = CC_CommonConvertMsbLsbBytesToLswMswWords(PrivKey_ptr->PriveKeyDb.Crt.dP, buffSizeBytes, dP… in CC_RsaPrivKeyCrtBuild() 579 …Error = CC_CommonConvertMsbLsbBytesToLswMswWords(PrivKey_ptr->PriveKeyDb.Crt.dQ, buffSizeBytes, dQ… in CC_RsaPrivKeyCrtBuild() 585 …Error = CC_CommonConvertMsbLsbBytesToLswMswWords(PrivKey_ptr->PriveKeyDb.Crt.qInv, buffSizeBytes, … in CC_RsaPrivKeyCrtBuild() 596 CC_CommonGetWordsCounterEffectiveSizeInBits(PrivKey_ptr->PriveKeyDb.Crt.P, (PSize+3)/4); in CC_RsaPrivKeyCrtBuild() 599 CC_CommonGetWordsCounterEffectiveSizeInBits(PrivKey_ptr->PriveKeyDb.Crt.Q, (QSize+3)/4); in CC_RsaPrivKeyCrtBuild() 602 CC_CommonGetWordsCounterEffectiveSizeInBits(PrivKey_ptr->PriveKeyDb.Crt.dP, (dPSize+3)/4); in CC_RsaPrivKeyCrtBuild() 605 CC_CommonGetWordsCounterEffectiveSizeInBits(PrivKey_ptr->PriveKeyDb.Crt.dQ, (dQSize+3)/4); in CC_RsaPrivKeyCrtBuild() 608 CC_CommonGetWordsCounterEffectiveSizeInBits(PrivKey_ptr->PriveKeyDb.Crt.qInv, (qInvSize+3)/4); in CC_RsaPrivKeyCrtBuild() [all …]
|
D | ccsw_rsa_kg.c | 453 PrivKey_ptr->PriveKeyDb.Crt.PSizeInBits = in CC_SwRsaKgGenerateKeyPairCRT() 454 …CC_CommonGetBytesCounterEffectiveSizeInBits((uint8_t*)PrivKey_ptr->PriveKeyDb.Crt.P, KeySizeInByte… in CC_SwRsaKgGenerateKeyPairCRT() 456 PrivKey_ptr->PriveKeyDb.Crt.QSizeInBits = in CC_SwRsaKgGenerateKeyPairCRT() 457 …CC_CommonGetBytesCounterEffectiveSizeInBits((uint8_t*)PrivKey_ptr->PriveKeyDb.Crt.Q, KeySizeInByte… in CC_SwRsaKgGenerateKeyPairCRT() 459 PrivKey_ptr->PriveKeyDb.Crt.dPSizeInBits = in CC_SwRsaKgGenerateKeyPairCRT() 460 …CC_CommonGetBytesCounterEffectiveSizeInBits((uint8_t*)PrivKey_ptr->PriveKeyDb.Crt.dP, KeySizeInByt… in CC_SwRsaKgGenerateKeyPairCRT() 462 PrivKey_ptr->PriveKeyDb.Crt.dQSizeInBits = in CC_SwRsaKgGenerateKeyPairCRT() 463 …CC_CommonGetBytesCounterEffectiveSizeInBits((uint8_t*)PrivKey_ptr->PriveKeyDb.Crt.dQ, KeySizeInByt… in CC_SwRsaKgGenerateKeyPairCRT() 465 PrivKey_ptr->PriveKeyDb.Crt.qInvSizeInBits = in CC_SwRsaKgGenerateKeyPairCRT() 466 …CC_CommonGetBytesCounterEffectiveSizeInBits((uint8_t*)PrivKey_ptr->PriveKeyDb.Crt.qInv, KeySizeInB… in CC_SwRsaKgGenerateKeyPairCRT()
|
D | ccsw_rsa_types.h | 179 CCSwRsaPrivCrtKey_t Crt; member 216 }Crt; member
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/ |
D | cc3xx_psa_key_generation.c | 255 ((RsaPrivKeyDb_t *)(pCcPrivKey->ccRSAPrivKeyIntBuff))->Crt.PP, /*out*/ in cc3xx_internal_gen_rsa_keypair() 262 ((RsaPrivKeyDb_t *)(pCcPrivKey->ccRSAPrivKeyIntBuff))->Crt.QP, /*out*/ in cc3xx_internal_gen_rsa_keypair() 272 pKeyGenData->KGData.q, pCcPrivKey->PriveKeyDb.Crt.dP, in cc3xx_internal_gen_rsa_keypair() 273 pCcPrivKey->PriveKeyDb.Crt.dQ, pCcPrivKey->PriveKeyDb.Crt.qInv); in cc3xx_internal_gen_rsa_keypair() 282 pCcPrivKey->PriveKeyDb.Crt.dP, pCcPrivKey->PriveKeyDb.Crt.dQ, in cc3xx_internal_gen_rsa_keypair() 283 pCcPrivKey->PriveKeyDb.Crt.qInv, keySizeBytes, in cc3xx_internal_gen_rsa_keypair()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/ |
D | rsa_alt.c | 476 err = PkiCalcNp(((RsaPrivKeyDb_t *)(pCcPrivKey->ccRSAPrivKeyIntBuff))->Crt.PP,/*out*/ in mbedtls_rsa_gen_key() 481 err = PkiCalcNp(((RsaPrivKeyDb_t *)(pCcPrivKey->ccRSAPrivKeyIntBuff))->Crt.QP,/*out*/ in mbedtls_rsa_gen_key() 486 …BEDTLS_PRIVATE(BPP), ((RsaPrivKeyDb_t*)(pCcPrivKey->ccRSAPrivKeyIntBuff))->Crt.PP, CC_PKA_BARRETT_… in mbedtls_rsa_gen_key() 487 …BEDTLS_PRIVATE(BQP), ((RsaPrivKeyDb_t*)(pCcPrivKey->ccRSAPrivKeyIntBuff))->Crt.QP, CC_PKA_BARRETT_… in mbedtls_rsa_gen_key() 496 pCcPrivKey->PriveKeyDb.Crt.dP, in mbedtls_rsa_gen_key() 497 pCcPrivKey->PriveKeyDb.Crt.dQ, in mbedtls_rsa_gen_key() 498 pCcPrivKey->PriveKeyDb.Crt.qInv ); in mbedtls_rsa_gen_key() 505 …_rsa_uint32_buf_to_mpi( &pCtx->MBEDTLS_PRIVATE(DP), pCcPrivKey->PriveKeyDb.Crt.dP, keySizeWords/2 … in mbedtls_rsa_gen_key() 506 …_rsa_uint32_buf_to_mpi( &pCtx->MBEDTLS_PRIVATE(DQ), pCcPrivKey->PriveKeyDb.Crt.dQ, keySizeWords/2 … in mbedtls_rsa_gen_key() 507 …_rsa_uint32_buf_to_mpi( &pCtx->MBEDTLS_PRIVATE(QP), pCcPrivKey->PriveKeyDb.Crt.qInv, keySizeWords/… in mbedtls_rsa_gen_key() [all …]
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/shared/include/crypto_api/ |
D | cc_rsa_types.h | 303 CCRsaPrivCrtKey_t Crt; /*!< CRT data structure. */ member
|