Home
last modified time | relevance | path

Searched refs:pUserPrivKey (Results 1 – 14 of 14) sorted by relevance

/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/ec_wrst/
Dcc_ecpki_kg.c55 CCEcpkiUserPrivKey_t *pUserPrivKey, /*out*/ in CC_EcpkiKeyPairGenerateBase() argument
79 if (pUserPrivKey == NULL) in CC_EcpkiKeyPairGenerateBase()
90 CC_PalMemSetZero( pUserPrivKey, sizeof(CCEcpkiUserPrivKey_t) ); in CC_EcpkiKeyPairGenerateBase()
94 pPrivKey = (CCEcpkiPrivKey_t *)&pUserPrivKey->PrivKeyDbBuff; in CC_EcpkiKeyPairGenerateBase()
110 … err = EcWrstGenKeyPairBase(pDomain, ecX_ptr, ecY_ptr, pUserPrivKey, pUserPublKey, pTempBuff); in CC_EcpkiKeyPairGenerateBase()
115 err = FIPS_ECC_VALIDATE(pRndContext, pUserPrivKey, pUserPublKey, pFipsCtx); in CC_EcpkiKeyPairGenerateBase()
119 CC_PalMemSetZero(pUserPrivKey, sizeof(CCEcpkiUserPrivKey_t)); in CC_EcpkiKeyPairGenerateBase()
161 CCEcpkiUserPrivKey_t *pUserPrivKey, /*out*/ in CC_EcpkiKeyPairGenerate() argument
172 pUserPrivKey, pUserPublKey, pTempBuff, pFipsCtx); in CC_EcpkiKeyPairGenerate()
Dcc_ecpki_build_priv.c59 CCEcpkiUserPrivKey_t *pUserPrivKey /*out*/) in CC_EcpkiPrivKeyBuild() argument
76 if (pUserPrivKey == NULL) in CC_EcpkiPrivKeyBuild()
91 pPrivKey = (CCEcpkiPrivKey_t *)((void*)pUserPrivKey->PrivKeyDbBuff); in CC_EcpkiPrivKeyBuild()
130 pUserPrivKey->valid_tag = CC_ECPKI_PRIV_KEY_VALIDATION_TAG; in CC_EcpkiPrivKeyBuild()
135 CC_PalMemSetZero(pUserPrivKey, sizeof(CCEcpkiUserPrivKey_t)); in CC_EcpkiPrivKeyBuild()
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/ec_wrst/
Dec_wrst_genkey.c33 CCEcpkiUserPrivKey_t *pUserPrivKey, in EcWrstGenKeyPairBase() argument
45 if (pUserPrivKey == NULL) in EcWrstGenKeyPairBase()
58 pPrivKey = (CCEcpkiPrivKey_t *)&pUserPrivKey->PrivKeyDbBuff; in EcWrstGenKeyPairBase()
77 pUserPrivKey->valid_tag = CC_ECPKI_PRIV_KEY_VALIDATION_TAG; in EcWrstGenKeyPairBase()
85 pUserPrivKey->valid_tag = 0; in EcWrstGenKeyPairBase()
110 … CCEcpkiUserPrivKey_t *pUserPrivKey, /*!< [out] Pointer to the generated private key structure.*/ in EcWrstGenKeyPair() argument
118 …return EcWrstGenKeyPairBase(pDomain, pDomain->ecGx, pDomain->ecGy, pUserPrivKey, pUserPublKey, pTe… in EcWrstGenKeyPair()
Dec_wrst.h113 CCEcpkiUserPrivKey_t *pUserPrivKey,
121 CCEcpkiUserPrivKey_t *pUserPrivKey,
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/
Dcc3xx_psa_asymmetric_encryption.c148 CCRsaUserPrivKey_t *pUserPrivKey = NULL; in cc3xx_internal_rsa_decrypt() local
162 pUserPrivKey = mbedtls_calloc(1, sizeof(CCRsaUserPrivKey_t)); in cc3xx_internal_rsa_decrypt()
164 if (pUserPrivKey == NULL || pPrimeData == NULL) { in cc3xx_internal_rsa_decrypt()
169 pUserPrivKey); in cc3xx_internal_rsa_decrypt()
178 error = CC_RsaOaepDecrypt(pUserPrivKey, in cc3xx_internal_rsa_decrypt()
191 error = CC_RsaPkcs1V15Decrypt(pUserPrivKey, in cc3xx_internal_rsa_decrypt()
210 if (pUserPrivKey) { in cc3xx_internal_rsa_decrypt()
211 CC_PalMemSetZero(pUserPrivKey, sizeof(CCRsaUserPrivKey_t)); in cc3xx_internal_rsa_decrypt()
212 mbedtls_free(pUserPrivKey); in cc3xx_internal_rsa_decrypt()
Dcc3xx_psa_key_generation.c77 CCEcpkiUserPrivKey_t *pUserPrivKey; in cc3xx_internal_gen_ecc_wstr_keypair() local
112 pUserPrivKey = (CCEcpkiUserPrivKey_t *)(pRndContext + 1); in cc3xx_internal_gen_ecc_wstr_keypair()
113 pUserPublKey = (CCEcpkiUserPublKey_t *)(pUserPrivKey + 1); in cc3xx_internal_gen_ecc_wstr_keypair()
120 pPrivKey = (CCEcpkiPrivKey_t *)&pUserPrivKey->PrivKeyDbBuff; in cc3xx_internal_gen_ecc_wstr_keypair()
122 rc = CC_EcpkiKeyPairGenerate(pRndContext, pDomain, pUserPrivKey, in cc3xx_internal_gen_ecc_wstr_keypair()
377 CCEcpkiUserPrivKey_t pUserPrivKey; in cc3xx_export_public_key() local
402 key_buffer_size, &pUserPrivKey); in cc3xx_export_public_key()
407 err = cc3xx_ecc_cc_priv_to_cc_publ(&pUserPrivKey, &pUserPublKey); in cc3xx_export_public_key()
Dcc3xx_internal_ecc_util.c195 psa_status_t cc3xx_ecc_cc_priv_to_cc_publ(CCEcpkiUserPrivKey_t *pUserPrivKey, in cc3xx_ecc_cc_priv_to_cc_publ() argument
208 pPrivKey = (CCEcpkiPrivKey_t *)&pUserPrivKey->PrivKeyDbBuff; in cc3xx_ecc_cc_priv_to_cc_publ()
309 CCEcpkiUserPrivKey_t *pUserPrivKey) in cc3xx_ecc_psa_priv_to_cc_priv() argument
314 if (NULL == priv_key || NULL == pUserPrivKey) { in cc3xx_ecc_psa_priv_to_cc_priv()
326 CC_EcpkiPrivKeyBuild(pDomain, priv_key, priv_key_size, pUserPrivKey); in cc3xx_ecc_psa_priv_to_cc_priv()
Dcc3xx_psa_asymmetric_signature.c71 CCEcpkiUserPrivKey_t pUserPrivKey; in cc3xx_internal_ecdsa_verify() local
108 &pUserPrivKey); in cc3xx_internal_ecdsa_verify()
110 err = cc3xx_ecc_cc_priv_to_cc_publ(&pUserPrivKey, &pUserPublKey); in cc3xx_internal_ecdsa_verify()
158 CCEcpkiUserPrivKey_t pUserPrivKey; in cc3xx_internal_ecdsa_sign() local
201 CC_EcpkiPrivKeyBuild(pDomain, key_buffer, key_length, &pUserPrivKey); in cc3xx_internal_ecdsa_sign()
238 CC_EcdsaSign(&rnd_ctx, &pSignUserContext, &pUserPrivKey, hash_mode, in cc3xx_internal_ecdsa_sign()
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/shared/include/crypto_api/
Dcc_ecpki_kg.h40 …CCEcpkiUserPrivKey_t *pUserPrivKey, /*!< [out] Pointer to the private key structure. This st…
63 …CCEcpkiUserPrivKey_t *pUserPrivKey, /*!< [out] Pointer to the private key structure. This st…
Dcc_ecpki_build.h45 … CCEcpkiUserPrivKey_t *pUserPrivKey /*!< [out] Pointer to the private key structure.
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/include/
Dcc3xx_internal_ecc_util.h47 psa_status_t cc3xx_ecc_cc_priv_to_cc_publ(CCEcpkiUserPrivKey_t *pUserPrivKey,
94 CCEcpkiUserPrivKey_t *pUserPrivKey);
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/host/src/cc3x_lib/
Dcc_fips_defs.h16 #define FIPS_ECC_VALIDATE(pRndContext, pUserPrivKey, pUserPublKey, pFipsCtx) (CC_OK) argument
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/
Dcc_ecp_internal.c462 CCEcpkiUserPrivKey_t *pUserPrivKey; in ecp_wrst_gen_keypair_base() local
490 pUserPrivKey = (CCEcpkiUserPrivKey_t *)(pRndContext + 1); in ecp_wrst_gen_keypair_base()
491 pUserPublKey = (CCEcpkiUserPublKey_t *)(pUserPrivKey + 1); in ecp_wrst_gen_keypair_base()
523 …VATE(X).MBEDTLS_PRIVATE(p), G->MBEDTLS_PRIVATE(Y).MBEDTLS_PRIVATE(p), pUserPrivKey, pUserPublKey, … in ecp_wrst_gen_keypair_base()
527 … rc = CC_EcpkiKeyPairGenerate(pRndContext, pDomain, pUserPrivKey, pUserPublKey, pTempBuff, NULL); in ecp_wrst_gen_keypair_base()
536 pPrivKey = (CCEcpkiPrivKey_t *)pUserPrivKey->PrivKeyDbBuff; in ecp_wrst_gen_keypair_base()
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/cc3x_sym/api/
Dmbedtls_cc_ecies.c109 CCEcpkiUserPrivKey_t *pUserPrivKey /*out*/, in ecies_convert_mbed_to_cc_private_key() argument
138 if ((error = CC_EcpkiPrivKeyBuild(pDomain, (uint8_t*)pTempBuildBuff, n, pUserPrivKey)) != CC_OK) in ecies_convert_mbed_to_cc_private_key()