Home
last modified time | relevance | path

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

/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/rsa/
Drsa_public.c33 CCError_t RsaInitPubKeyDb(CCRsaPubKey_t *pPubKey) /*!< [in] Public key structure. */ in RsaInitPubKeyDb() argument
37 if (pPubKey == NULL) { in RsaInitPubKeyDb()
44 error = PkiCalcNp( ((RsaPubKeyDb_t*)(pPubKey->ccRSAIntBuff))->NP, /*out*/ in RsaInitPubKeyDb()
45 pPubKey->n, /*in*/ in RsaInitPubKeyDb()
46 pPubKey->nSizeInBits); in RsaInitPubKeyDb()
65 CCError_t RsaExecPubKeyExp( CCRsaPubKey_t *pPubKey, /*!< [in] Public key structure. */ in RsaExecPubKeyExp() argument
77 nSizeInWords = CALC_FULL_32BIT_WORDS(pPubKey->nSizeInBits); in RsaExecPubKeyExp()
78 eSizeInWords = CALC_FULL_32BIT_WORDS(pPubKey->eSizeInBits); in RsaExecPubKeyExp()
83 error = PkaInitAndMutexLock(pPubKey->nSizeInBits, &pkaReqRegs); in RsaExecPubKeyExp()
89 PkaCopyDataIntoPkaReg(PKA_REG_N/*dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pPubKey->n/*srcPtr*/, in RsaExecPubKeyExp()
[all …]
Drsa_public.h32 CCError_t RsaExecPubKeyExp(CCRsaPubKey_t *pPubKey,
35 CCError_t RsaInitPubKeyDb(CCRsaPubKey_t *pPubKey);
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/secure_boot_debug/common/
Dcommon_cert_parser.c43 uint8_t *pPubKey = NULL; in CCCertFieldsParse() local
71 pPubKey = (uint8_t *)((unsigned long)pCertInfo->pBuffer + sizeof(CCSbCertHeader_t)); in CCCertFieldsParse()
74 UTIL_MemCopy((uint8_t *)&lpWorkspaceInt->pubKey, pPubKey, sizeof(CCSbNParams_t)); in CCCertFieldsParse()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/utils/src/common/
Dcommon_crypto_asym.h34 int8_t *pPubKey,
82 int8_t *pPubKey,
Dcommon_crypto_asym.c291 int8_t *pPubKey, in CC_CommonRsaVerify() argument
300 if ((NULL == pPubKey) || in CC_CommonRsaVerify()
314 pRsaPubKey->n = BN_bin2bn(pPubKey, SB_CERT_RSA_KEY_SIZE_IN_BYTES, NULL); in CC_CommonRsaVerify()
431 int8_t *pPubKey, in CC_CommonRsaEncrypt() argument
441 if ((NULL == pPubKey) || in CC_CommonRsaEncrypt()
455 pRsaPubKey->n = BN_bin2bn(pPubKey, SB_CERT_RSA_KEY_SIZE_IN_BYTES, NULL); in CC_CommonRsaEncrypt()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/cc3x_sym/driver/
Dsrp_driver.c20 #define REMOVE_LEADING_BYTE_ZEROS(origPubKey, origSize, pPubKey, pubKeySize) {\ argument
28 pPubKey = &(((uint8_t *)origPubKey)[i]); \
495 uint8_t *pPubKey; in SRP_UserProofCalc2() local
579 REMOVE_LEADING_BYTE_ZEROS((uint8_t *)userPubKeyA, modSize, pPubKey, pubKeySize); in SRP_UserProofCalc2()
580 rc = mbedtls_md_update(md_ctx, (uint8_t *)pPubKey, pubKeySize); in SRP_UserProofCalc2()
585 REMOVE_LEADING_BYTE_ZEROS((uint8_t *)hostPubKeyB, modSize, pPubKey, pubKeySize); in SRP_UserProofCalc2()
586 rc = mbedtls_md_update(md_ctx, (uint8_t *)pPubKey, pubKeySize); in SRP_UserProofCalc2()
623 uint8_t *pPubKey; in SRP_HostProofCalc() local
652 …EROS((uint8_t *)userPubKeyA, CALC_FULL_BYTES(pCtx->groupParam.modSizeInBits), pPubKey, pubKeySize); in SRP_HostProofCalc()
653 rc = mbedtls_md_update(&hash_ctx, (uint8_t *)pPubKey, pubKeySize); in SRP_HostProofCalc()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/cc3x_sym/api/
Dmbedtls_cc_ecies.c57 mbedtls_ecp_point *pPubKey, /*in*/ in ecies_convert_mbed_to_cc_public_key() argument
81 pPubKey, in ecies_convert_mbed_to_cc_public_key()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/
Dcc3xx_psa_asymmetric_signature.c294 CCRsaPubKey_t *pPubKey = (CCRsaPubKey_t *)pUserPubKey->PublicKeyDbBuff; in cc3xx_internal_rsa_verify() local
295 if (signature_length != CALC_FULL_BYTES(pPubKey->nSizeInBits)) { in cc3xx_internal_rsa_verify()