/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/rsa/ |
D | rsa_private.c | 61 dSizeInWords = CALC_FULL_32BIT_WORDS(pPrivKey->PriveKeyDb.NonCrt.dSizeInBits); in RsaExecPrivKeyExpNonCrt() 82 …PkaCopyDataIntoPkaReg( rT3/*dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pPrivKey->PriveKeyDb.NonCrt.d, dSi… in RsaExecPrivKeyExpNonCrt() 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() 183 …PkaCopyDataIntoPkaReg(rQ/*6 dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pPrivKey->PriveKeyDb.Crt.P/*src_pt… 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_genkey.c | 1354 uint32_t *pPrivExp = pCcPrivKey->PriveKeyDb.NonCrt.d; in RsaCalculateNandD() 1474 pCcPrivKey->PriveKeyDb.NonCrt.dSizeInBits = in RsaCalculateNandD() 1475 CC_CommonGetWordsCounterEffectiveSizeInBits(pCcPrivKey->PriveKeyDb.NonCrt.d, in RsaCalculateNandD()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/rsa/ |
D | cc_rsa_build.c | 299 … Error = CC_CommonConvertMsbLsbBytesToLswMswWords(PrivKey_ptr->PriveKeyDb.NonCrt.d, buffSizeBytes, in CC_RsaPrivKeyBuild() 311 …CC_CommonGetWordsCounterEffectiveSizeInBits(PrivKey_ptr->PriveKeyDb.NonCrt.d, (PrivExponentSize+3)… in CC_RsaPrivKeyBuild() 348 PrivKey_ptr->PriveKeyDb.NonCrt.d[0] < CC_RSA_MIN_PRIV_EXP_VALUE) { in CC_RsaPrivKeyBuild() 356 … Error = CC_CommonConvertMsbLsbBytesToLswMswWords( PrivKey_ptr->PriveKeyDb.NonCrt.e, buffSizeBytes, in CC_RsaPrivKeyBuild() 364 …CC_CommonGetWordsCounterEffectiveSizeInBits(PrivKey_ptr->PriveKeyDb.NonCrt.e, (PubExponentSize+3)/… in CC_RsaPrivKeyBuild() 368 PrivKey_ptr->PriveKeyDb.NonCrt.e[0] < CC_RSA_MIN_PUB_EXP_VALUE) { in CC_RsaPrivKeyBuild() 397 PrivKey_ptr->PriveKeyDb.NonCrt.dSizeInBits = PrivExponentEffectiveSizeInBits; in CC_RsaPrivKeyBuild() 398 PrivKey_ptr->PriveKeyDb.NonCrt.eSizeInBits = PubExponentEffectiveSizeInBits; in CC_RsaPrivKeyBuild() 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() [all …]
|
D | cc_rsa_kg.c | 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() 254 …CC_CommonReverseMemcpy(rsaKgOutParams.dPrivExponent, (uint8_t*)pCcPrivKey->PriveKeyDb.NonCrt.d, Ke… in CC_RsaKgKeyPairGenerate() 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() [all …]
|
D | ccsw_rsa_kg.c | 184 CC_PalMemCopy( PrivKey_ptr->PriveKeyDb.NonCrt.e , PubKey_ptr->e , 4*((PubExpSizeInBytes+3)/4) ); in CC_SwRsaKgGenerateKeyPair() 185 PrivKey_ptr->PriveKeyDb.NonCrt.eSizeInBits = PubKey_ptr->eSizeInBits; in CC_SwRsaKgGenerateKeyPair() 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() [all …]
|
D | ccsw_rsa_types.h | 180 }PriveKeyDb; member
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/ |
D | cc3xx_psa_key_generation.c | 220 pCcPrivKey->PriveKeyDb.NonCrt.eSizeInBits = pCcPubKey->eSizeInBits; in cc3xx_internal_gen_rsa_keypair() 221 pCcPrivKey->PriveKeyDb.NonCrt.e[0] = pubExp; in cc3xx_internal_gen_rsa_keypair() 251 CC_PalMemCopy(d_buff, pCcPrivKey->PriveKeyDb.NonCrt.d, keySizeBytes); 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 | 423 pCcPrivKey->PriveKeyDb.NonCrt.eSizeInBits = pCcPubKey->eSizeInBits; in mbedtls_rsa_gen_key() 424 pCcPrivKey->PriveKeyDb.NonCrt.e[0] = pubExp; in mbedtls_rsa_gen_key() 466 … mbedtls_rsa_uint32_buf_to_mpi( &pCtx->MBEDTLS_PRIVATE(D), pCcPrivKey->PriveKeyDb.NonCrt.d, keySiz… 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 …mbedtls_rsa_uint32_buf_to_mpi( &pCtx->MBEDTLS_PRIVATE(DP), pCcPrivKey->PriveKeyDb.Crt.dP, keySizeW… in mbedtls_rsa_gen_key() 506 …mbedtls_rsa_uint32_buf_to_mpi( &pCtx->MBEDTLS_PRIVATE(DQ), pCcPrivKey->PriveKeyDb.Crt.dQ, keySizeW… in mbedtls_rsa_gen_key() 507 …mbedtls_rsa_uint32_buf_to_mpi( &pCtx->MBEDTLS_PRIVATE(QP), pCcPrivKey->PriveKeyDb.Crt.qInv, keySiz… in mbedtls_rsa_gen_key() 514 …CC_CommonReverseMemcpy( rsaKgOutParams.dPrivExponent, (uint8_t*)pCcPrivKey->PriveKeyDb.NonCrt.d, k… 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 | 304 }PriveKeyDb; member
|