Searched refs:PubKey_ptr (Results 1 – 7 of 7) sorted by relevance
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/rsa/ |
D | ccsw_rsa_kg.c | 105 SwRsaPubKey_t *PubKey_ptr; in CC_SwRsaKgGenerateKeyPair() local 156 PubKey_ptr = ( SwRsaPubKey_t *)UserPubKey_ptr->PublicKeyDbBuff; in CC_SwRsaKgGenerateKeyPair() 166 CC_CommonReverseMemcpy( (uint8_t*)PubKey_ptr->e , PubExp_ptr , PubExpSizeInBytes ); in CC_SwRsaKgGenerateKeyPair() 168 …PubKey_ptr->eSizeInBits = CC_CommonGetBytesCounterEffectiveSizeInBits( (uint8_t*)PubKey_ptr->e,Pub… in CC_SwRsaKgGenerateKeyPair() 171 if (PubKey_ptr->eSizeInBits == 0) { in CC_SwRsaKgGenerateKeyPair() 177 if (PubKey_ptr->e[0] != 0x3 && in CC_SwRsaKgGenerateKeyPair() 178 PubKey_ptr->e[0] != 0x11 && in CC_SwRsaKgGenerateKeyPair() 179 PubKey_ptr->e[0] != 0x010001) { 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() [all …]
|
D | cc_rsa_build.c | 74 CCRsaPubKey_t *PubKey_ptr; in CC_RsaPubKeyBuild() local 109 PubKey_ptr = ( CCRsaPubKey_t * )UserPubKey_ptr->PublicKeyDbBuff; in CC_RsaPubKeyBuild() 112 CC_PalMemSetZero( PubKey_ptr, sizeof(CCRsaPubKey_t) ); in CC_RsaPubKeyBuild() 115 …Error = CC_CommonConvertMsbLsbBytesToLswMswWords(PubKey_ptr->n, buffSizeBytes, Modulus_ptr, Modulu… in CC_RsaPubKeyBuild() 121 …Error = CC_CommonConvertMsbLsbBytesToLswMswWords(PubKey_ptr->e, buffSizeBytes, Exponent_ptr, Expon… in CC_RsaPubKeyBuild() 131 …ModulusEffectiveSizeInBits = CC_CommonGetWordsCounterEffectiveSizeInBits(PubKey_ptr->n, (ModulusS… in CC_RsaPubKeyBuild() 132 …ExponentEffectiveSizeInBits = CC_CommonGetWordsCounterEffectiveSizeInBits(PubKey_ptr->e, (Exponent… in CC_RsaPubKeyBuild() 144 if ((PubKey_ptr->n[0] & 1UL) == 0) { in CC_RsaPubKeyBuild() 164 if (ExponentEffectiveSizeInBits < 32 && PubKey_ptr->e[0] < CC_RSA_MIN_PUB_EXP_VALUE) { in CC_RsaPubKeyBuild() 173 PubKey_ptr->nSizeInBits = ModulusEffectiveSizeInBits; in CC_RsaPubKeyBuild() [all …]
|
D | cc_rsa_prim.c | 77 CCRsaPubKey_t *PubKey_ptr; in CC_RsaPrimEncrypt() local 117 PubKey_ptr = (CCRsaPubKey_t*)UserPubKey_ptr->PublicKeyDbBuff; in CC_RsaPrimEncrypt() 120 nSizeInBytes = CALC_FULL_BYTES(PubKey_ptr->nSizeInBits); in CC_RsaPrimEncrypt() 140 PubKey_ptr->n, (uint16_t)(nSizeInBytes+3)/4); in CC_RsaPrimEncrypt() 148 Error = RsaExecPubKeyExp(PubKey_ptr, PrimeData_ptr); in CC_RsaPrimEncrypt()
|
D | cc_rsa_verify.c | 88 CCRsaPubKey_t *PubKey_ptr; in CC_RsaVerifyInit() local 153 PubKey_ptr = (CCRsaPubKey_t *)UserPubKey_ptr->PublicKeyDbBuff; in CC_RsaVerifyInit() 156 ModulusSizeBytes = (PubKey_ptr->nSizeInBits - 1) / 8; in CC_RsaVerifyInit() 157 if ((PubKey_ptr->nSizeInBits - 1) % 8) in CC_RsaVerifyInit() 424 CCRsaPubKey_t *PubKey_ptr; in CC_RsaVerifyFinish() local 452 PubKey_ptr = (CCRsaPubKey_t *)ccmWorkingContext_ptr->PubUserKey.PublicKeyDbBuff; in CC_RsaVerifyFinish() 453 modSizeBytes = (uint16_t)(CALC_FULL_BYTES(PubKey_ptr->nSizeInBits)); in CC_RsaVerifyFinish()
|
D | cc_rsa_schemes.c | 108 CCRsaPubKey_t *PubKey_ptr; in CC_RsaSchemesEncrypt() local 145 PubKey_ptr = (CCRsaPubKey_t *)UserPubKey_ptr->PublicKeyDbBuff; in CC_RsaSchemesEncrypt() 157 K = (uint16_t)CALC_FULL_BYTES(PubKey_ptr->nSizeInBits); in CC_RsaSchemesEncrypt()
|
D | cc_rsa_pss21_util.c | 81 CCRsaPubKey_t *PubKey_ptr = (CCRsaPubKey_t *)Context_ptr->PubUserKey.PublicKeyDbBuff; in RsaPssVerify21() local 91 PubNNewSizeBytes = (PubKey_ptr->nSizeInBits - 1)/8; in RsaPssVerify21() 93 …if (((PubKey_ptr->nSizeInBits - 1) % 8) != 0) {/*Rounding Only in case that (PubNSizebits -1) is n… in RsaPssVerify21()
|
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/ |
D | rsa_alt.c | 1490 CCRsaPubKey_t *PubKey_ptr; in build_cc_pubkey() local 1516 PubKey_ptr = ( CCRsaPubKey_t * )UserPubKey_ptr->PublicKeyDbBuff; in build_cc_pubkey() 1519 CC_PalMemSetZero( PubKey_ptr, sizeof(CCRsaPubKey_t) ); in build_cc_pubkey() 1520 …CC_PalMemCopy(PubKey_ptr->n, ctx->MBEDTLS_PRIVATE(N).MBEDTLS_PRIVATE(p), mbedtls_mpi_size(&ctx->MB… in build_cc_pubkey() 1521 …CC_PalMemCopy(PubKey_ptr->e, ctx->MBEDTLS_PRIVATE(E).MBEDTLS_PRIVATE(p), mbedtls_mpi_size(&ctx->MB… in build_cc_pubkey() 1527 …ModulusEffectiveSizeInBits = CC_CommonGetWordsCounterEffectiveSizeInBits(PubKey_ptr->n, (ModulusS… in build_cc_pubkey() 1528 …ExponentEffectiveSizeInBits = CC_CommonGetWordsCounterEffectiveSizeInBits(PubKey_ptr->e, (Exponent… in build_cc_pubkey() 1539 if ( (PubKey_ptr->n[0] & 1UL) == 0 ) { in build_cc_pubkey() 1551 …ounterCmpResult = CC_CommonCmpLsWordsUnsignedCounters(PubKey_ptr->e, (ExponentSize+3)/4, PubKey_pt… in build_cc_pubkey() 1559 if (ExponentEffectiveSizeInBits < 32 && PubKey_ptr->e[0] < CC_RSA_MIN_PUB_EXP_VALUE) { in build_cc_pubkey() [all …]
|