Home
last modified time | relevance | path

Searched refs:PrivKey_ptr (Results 1 – 8 of 8) sorted by relevance

/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/rsa/
Dccsw_rsa_kg.c106 SwRsaPrivKey_t *PrivKey_ptr; in CC_SwRsaKgGenerateKeyPair() local
157 PrivKey_ptr = ( SwRsaPrivKey_t *)UserPrivKey_ptr->PrivateKeyDbBuff; in CC_SwRsaKgGenerateKeyPair()
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()
192 PrivKey_ptr->nSizeInBits = KeySize; in CC_SwRsaKgGenerateKeyPair()
198 PrivKey_ptr->OperationMode = CC_RSA_NoCrt; in CC_SwRsaKgGenerateKeyPair()
201 PrivKey_ptr->KeySource = CC_RSA_InternalKey; in CC_SwRsaKgGenerateKeyPair()
237 CC_PalMemSetZero( PrivKey_ptr->n, 4*CC_RSA_MAXIMUM_MOD_BUFFER_SIZE_IN_WORDS ); in CC_SwRsaKgGenerateKeyPair()
241 PrivKey_ptr, in CC_SwRsaKgGenerateKeyPair()
255 Error = SW_LLF_PKI_RSA_InitPrivKeyDb(PrivKey_ptr); in CC_SwRsaKgGenerateKeyPair()
[all …]
Dcc_rsa_build.c245 CCRsaPrivKey_t *PrivKey_ptr; in CC_RsaPrivKeyBuild() local
287 PrivKey_ptr = (CCRsaPrivKey_t *)UserPrivKey_ptr->PrivateKeyDbBuff; in CC_RsaPrivKeyBuild()
290 CC_PalMemSetZero(PrivKey_ptr, sizeof(CCRsaPrivKey_t)); in CC_RsaPrivKeyBuild()
293 …Error = CC_CommonConvertMsbLsbBytesToLswMswWords(PrivKey_ptr->n, buffSizeBytes, Modulus_ptr, Modul… in CC_RsaPrivKeyBuild()
299 … Error = CC_CommonConvertMsbLsbBytesToLswMswWords(PrivKey_ptr->PriveKeyDb.NonCrt.d, buffSizeBytes, in CC_RsaPrivKeyBuild()
308 CC_CommonGetWordsCounterEffectiveSizeInBits(PrivKey_ptr->n, (ModulusSize+3)/4); in CC_RsaPrivKeyBuild()
311 …CC_CommonGetWordsCounterEffectiveSizeInBits(PrivKey_ptr->PriveKeyDb.NonCrt.d, (PrivExponentSize+3)… in CC_RsaPrivKeyBuild()
326 if ((PrivKey_ptr->n[0] & 1UL) == 0) { 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()
[all …]
Dcc_rsa_prim.c224 CCRsaPrivKey_t *PrivKey_ptr; in CC_RsaPrimDecrypt() local
261 PrivKey_ptr = (CCRsaPrivKey_t*)UserPrivKey_ptr->PrivateKeyDbBuff; in CC_RsaPrimDecrypt()
264 nSizeInBytes = CALC_FULL_BYTES(PrivKey_ptr->nSizeInBits); in CC_RsaPrimDecrypt()
288 PrivKey_ptr->n, (uint16_t)(nSizeInBytes+3)/4); in CC_RsaPrimDecrypt()
298 Error = RsaExecPrivKeyExp(PrivKey_ptr, PrimeData_ptr); in CC_RsaPrimDecrypt()
Dcc_rsa_sign.c88 CCRsaPrivKey_t *PrivKey_ptr ; in CC_RsaSignInit() local
146 PrivKey_ptr = (CCRsaPrivKey_t *)UserPrivKey_ptr->PrivateKeyDbBuff; in CC_RsaSignInit()
149 ModulusSizeBytes = (uint16_t)((PrivKey_ptr->nSizeInBits -1) / 8); in CC_RsaSignInit()
150 if ((PrivKey_ptr->nSizeInBits -1) % 8) in CC_RsaSignInit()
428 CCRsaPrivKey_t *PrivKey_ptr; in CC_RsaSignFinish() local
466 PrivKey_ptr = (CCRsaPrivKey_t *)ccmWorkingContext_ptr->PrivUserKey.PrivateKeyDbBuff; in CC_RsaSignFinish()
469 K = (uint16_t)CALC_FULL_BYTES(PrivKey_ptr->nSizeInBits); in CC_RsaSignFinish()
Dcc_rsa_schemes.c360 CCRsaPrivKey_t *PrivKey_ptr; in CC_RsaSchemesDecrypt() local
416 PrivKey_ptr = (CCRsaPrivKey_t *)UserPrivKey_ptr->PrivateKeyDbBuff; in CC_RsaSchemesDecrypt()
427 K = (uint16_t)(CALC_FULL_BYTES(PrivKey_ptr->nSizeInBits)); in CC_RsaSchemesDecrypt()
Dcc_rsa_pss21_util.c301 CCRsaPrivKey_t *PrivKey_ptr = (CCRsaPrivKey_t *)Context_ptr->PrivUserKey.PrivateKeyDbBuff; in RsaPssSign21() local
338 PrvNNewSizeBytes = (PrivKey_ptr->nSizeInBits -1)/8; in RsaPssSign21()
339 PrvNSizebits = PrivKey_ptr->nSizeInBits; in RsaPssSign21()
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/ec_wrst/
Dcc_ecdh.c47 CCEcpkiPrivKey_t *PrivKey_ptr; in CC_EcdhSvdpDh() local
88 PrivKey_ptr = (CCEcpkiPrivKey_t*)&UserPrivKey_ptr->PrivKeyDbBuff; in CC_EcdhSvdpDh()
91 pDomain = &PrivKey_ptr->domain; in CC_EcdhSvdpDh()
111 PublKey_ptr, PrivKey_ptr, in CC_EcdhSvdpDh()
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/
Drsa_alt.c1107 CCRsaPrivKey_t *PrivKey_ptr; in build_cc_priv_non_crt_key() local
1135 PrivKey_ptr = (CCRsaPrivKey_t *)UserPrivKey_ptr->PrivateKeyDbBuff; in build_cc_priv_non_crt_key()
1139 CC_PalMemSetZero(PrivKey_ptr, sizeof(CCRsaPrivKey_t)); in build_cc_priv_non_crt_key()
1141 CC_PalMemCopy(PrivKey_ptr->n, ctx->MBEDTLS_PRIVATE(N).MBEDTLS_PRIVATE(p), ModulusSize); in build_cc_priv_non_crt_key()
1142 …CC_PalMemCopy(PrivKey_ptr->PriveKeyDb.NonCrt.d, ctx->MBEDTLS_PRIVATE(D).MBEDTLS_PRIVATE(p), PrivEx… in build_cc_priv_non_crt_key()
1149 CC_CommonGetWordsCounterEffectiveSizeInBits(PrivKey_ptr->n, (ModulusSize + 3)/4); in build_cc_priv_non_crt_key()
1151 …CC_CommonGetWordsCounterEffectiveSizeInBits(PrivKey_ptr->PriveKeyDb.NonCrt.d, (PrivExponentSize + … in build_cc_priv_non_crt_key()
1161 if ( (PrivKey_ptr->n[0] & 1UL) == 0 ) { in build_cc_priv_non_crt_key()
1172 … CC_CommonCmpLsWordsUnsignedCounters(PrivKey_ptr->PriveKeyDb.NonCrt.d, (PrivExponentSize+3)/4, in build_cc_priv_non_crt_key()
1173 PrivKey_ptr->n, (ModulusSize+3)/4); in build_cc_priv_non_crt_key()
[all …]