/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/rsa/ |
D | rsa_private.c | 43 static CCError_t RsaExecPrivKeyExpNonCrt(CCRsaPrivKey_t *pPrivKey , /*!< [in] Private key datab… in RsaExecPrivKeyExpNonCrt() argument 55 modSizeWords = CALC_FULL_32BIT_WORDS(pPrivKey->nSizeInBits); in RsaExecPrivKeyExpNonCrt() 61 dSizeInWords = CALC_FULL_32BIT_WORDS(pPrivKey->PriveKeyDb.NonCrt.dSizeInBits); in RsaExecPrivKeyExpNonCrt() 63 error = PkaInitAndMutexLock(pPrivKey->nSizeInBits,&pkaReqRegs); in RsaExecPrivKeyExpNonCrt() 71 …PkaCopyDataIntoPkaReg(PKA_REG_N/*dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pPrivKey->n/*srcPtr*/,modSize… in RsaExecPrivKeyExpNonCrt() 75 ((RsaPrivKeyDb_t*)(pPrivKey->ccRSAPrivKeyIntBuff))->NonCrt.NP/*srcPtr*/, in RsaExecPrivKeyExpNonCrt() 82 …PkaCopyDataIntoPkaReg( rT3/*dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pPrivKey->PriveKeyDb.NonCrt.d, dSi… in RsaExecPrivKeyExpNonCrt() 122 static CCError_t RsaExecPrivKeyExpCrt(CCRsaPrivKey_t *pPrivKey , /*!< [in] Private key database… in RsaExecPrivKeyExpCrt() argument 143 modSizeWords = CALC_FULL_32BIT_WORDS(pPrivKey->nSizeInBits); in RsaExecPrivKeyExpCrt() 148 error = PkaInitAndMutexLock(pPrivKey->nSizeInBits, &pkaReqRegs); in RsaExecPrivKeyExpCrt() [all …]
|
D | rsa_private.h | 47 CCError_t RsaInitPrivKeyDb(CCRsaPrivKey_t *pPrivKey); 49 CCError_t RsaExecPrivKeyExp(CCRsaPrivKey_t *pPrivKey,
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/ec_wrst/ |
D | cc_ecpki_build_priv.c | 64 CCEcpkiPrivKey_t *pPrivKey; in CC_EcpkiPrivKeyBuild() local 91 pPrivKey = (CCEcpkiPrivKey_t *)((void*)pUserPrivKey->PrivKeyDbBuff); in CC_EcpkiPrivKeyBuild() 100 … pPrivKey->PrivKey, sizeof(pPrivKey->PrivKey), in CC_EcpkiPrivKeyBuild() 110 … pPrivKey->PrivKey, (uint16_t)(privKeySizeInBytes+3)/sizeof(uint32_t), in CC_EcpkiPrivKeyBuild() 119 if (CC_CommonGetWordsCounterEffectiveSizeInBits(pPrivKey->PrivKey, in CC_EcpkiPrivKeyBuild() 127 CC_PalMemCopy(&pPrivKey->domain, pDomain, sizeof(CCEcpkiDomain_t)); in CC_EcpkiPrivKeyBuild()
|
D | cc_ecpki_kg.c | 61 CCEcpkiPrivKey_t *pPrivKey; in CC_EcpkiKeyPairGenerateBase() local 94 pPrivKey = (CCEcpkiPrivKey_t *)&pUserPrivKey->PrivKeyDbBuff; in CC_EcpkiKeyPairGenerateBase() 103 pPrivKey->PrivKey[orderSizeInWords - 1] = 0; in CC_EcpkiKeyPairGenerateBase() 105 … (uint8_t*)pTempBuff/*MaxVect*/, (uint8_t*)pPrivKey->PrivKey/*RndVect*/); in CC_EcpkiKeyPairGenerateBase()
|
D | cc_ecdsa_sign.c | 345 CCEcpkiPrivKey_t *pPrivKey; in EcdsaSignFinishInt() local 410 pPrivKey = (CCEcpkiPrivKey_t *)&pWorkingContext->ECDSA_SignerPrivKey.PrivKeyDbBuff; in EcdsaSignFinishInt() 412 pDomain = &pPrivKey->domain; in EcdsaSignFinishInt() 459 pRndContext, pPrivKey, in EcdsaSignFinishInt()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/ec_wrst/ |
D | ec_wrst_genkey.c | 38 CCEcpkiPrivKey_t *pPrivKey; in EcWrstGenKeyPairBase() local 58 pPrivKey = (CCEcpkiPrivKey_t *)&pUserPrivKey->PrivKeyDbBuff; in EcWrstGenKeyPairBase() 65 pPrivKey->PrivKey/*scalar*/, orderSizeInWords, /*scalar size*/ in EcWrstGenKeyPairBase() 76 CC_PalMemCopy((uint8_t*)&pPrivKey->domain, (uint8_t*)pDomain, sizeof(pPrivKey->domain)); in EcWrstGenKeyPairBase() 87 CC_PalMemSet(pPrivKey, 0, sizeof(pPrivKey->PrivKey)); in EcWrstGenKeyPairBase()
|
D | ec_wrst.c | 190 … CCEcpkiPrivKey_t *pPrivKey, /*!< [in] Pointer to the private key structure. */ in EcWrstDhDeriveSharedSecret() argument 212 pPrivKey->PrivKey, /*in*/ in EcWrstDhDeriveSharedSecret()
|
D | ec_wrst.h | 104 CCEcpkiPrivKey_t *pPrivKey,
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/ |
D | cc3xx_internal_ecc_util.c | 201 CCEcpkiPrivKey_t *pPrivKey; in cc3xx_ecc_cc_priv_to_cc_publ() local 208 pPrivKey = (CCEcpkiPrivKey_t *)&pUserPrivKey->PrivKeyDbBuff; in cc3xx_ecc_cc_priv_to_cc_publ() 211 (pPrivKey->domain.ordSizeInBits + CC_BITS_IN_32BIT_WORD - 1) / in cc3xx_ecc_cc_priv_to_cc_publ() 215 &pPrivKey->domain, /*!< [in] Pointer to EC domain. */ in cc3xx_ecc_cc_priv_to_cc_publ() 216 pPrivKey->PrivKey, /*!< [in] Pointer to the scalsr buffer. */ in cc3xx_ecc_cc_priv_to_cc_publ() 218 pPrivKey->domain.ecGx, /*!< [in] Pointer to input point X coordinate. */ in cc3xx_ecc_cc_priv_to_cc_publ() 219 pPrivKey->domain.ecGy, /*!< [in] Pointer to input point Y coordinate. */ in cc3xx_ecc_cc_priv_to_cc_publ() 235 pPublKey->domain = pPrivKey->domain; in cc3xx_ecc_cc_priv_to_cc_publ()
|
D | cc3xx_psa_key_generation.c | 79 CCEcpkiPrivKey_t *pPrivKey; in cc3xx_internal_gen_ecc_wstr_keypair() local 120 pPrivKey = (CCEcpkiPrivKey_t *)&pUserPrivKey->PrivKeyDbBuff; in cc3xx_internal_gen_ecc_wstr_keypair() 130 CC_CommonReverseMemcpy(key_buffer, (uint8_t *)pPrivKey->PrivKey, in cc3xx_internal_gen_ecc_wstr_keypair()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/ |
D | ecdsa_edwards.c | 77 uint8_t *pPrivKey; // size is 2*ecEdwOrderSizeBytes in mbedtls_ecdsa_genkey_edwards() local 117 pPrivKey = (uint8_t*)pFuncTemp + sizeof( CCEcEdwTempBuff_t ); in mbedtls_ecdsa_genkey_edwards() 118 pPublicKey = pPrivKey + privKeySizeBytes; in mbedtls_ecdsa_genkey_edwards() 129 rc = EcEdwSeedKeyPair(pPublicKey, pPrivKey, in mbedtls_ecdsa_genkey_edwards() 146 ret = mbedtls_mpi_read_binary(d, pPrivKey, CALC_FULL_BYTES(2*pDomain->ecModSizeInBits)); in mbedtls_ecdsa_genkey_edwards()
|
D | cc_ecp_internal.c | 464 CCEcpkiPrivKey_t *pPrivKey; in ecp_wrst_gen_keypair_base() local 536 pPrivKey = (CCEcpkiPrivKey_t *)pUserPrivKey->PrivKeyDbBuff; in ecp_wrst_gen_keypair_base() 538 … CC_PalMemCopy(d->MBEDTLS_PRIVATE(p), pPrivKey->PrivKey, CALC_FULL_BYTES(pDomain->modSizeInBits)); in ecp_wrst_gen_keypair_base()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/ec_edw/ |
D | ec_edw.c | 341 uint32_t *pPrivKey = (uint32_t*)pEcEdwSignTempBuff; /*h1||h2 = hash(seed)*/ in EcEdwSign() local 342 uint32_t *pEphPriv = pPrivKey + edwSizeWords; /*nonce*/ in EcEdwSign() 363 (unsigned char *)pPrivKey); in EcEdwSign() 369 ((uint8_t*)pPrivKey)[0] &= 248; in EcEdwSign() 370 ((uint8_t*)pPrivKey)[edwSizeBytes-1] &= 63; in EcEdwSign() 371 ((uint8_t*)pPrivKey)[edwSizeBytes-1] |= 64; in EcEdwSign() 530 PkaCopyDataIntoPkaReg(EDW_REG_USER_PRIV, LEN_ID_N_PKA_REG_BITS, pPrivKey, edwSizeWords); in EcEdwSign()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/cc3x_sym/api/ |
D | mbedtls_cc_ecies.c | 108 mbedtls_mpi *pPrivKey, /*in*/ in ecies_convert_mbed_to_cc_private_key() argument 123 n = mbedtls_mpi_size( pPrivKey ); in ecies_convert_mbed_to_cc_private_key() 132 if ((error = mbedtls_mpi_write_binary(pPrivKey, (uint8_t*)pTempBuildBuff, n)) != 0) in ecies_convert_mbed_to_cc_private_key()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/ffcdh/ |
D | cc_ffcdh.c | 886 uint32_t *pPrivKey, /*!< [out] pointer to private key buffer. */ in FfcDhGenKeyPair() argument 899 (uint8_t*)pPrivKey); /*out*/ in FfcDhGenKeyPair() 919 pPrivKey, /*priv.key - exponent*/ in FfcDhGenKeyPair() 960 uint32_t *pPrivKey, *pPublKey; in CC_FfcDhGeneratePublPrivKeys() local 1007 pPrivKey = &pDhCtx->statPrivKey[0]; in CC_FfcDhGeneratePublPrivKeys() 1010 err = FfcDhGenKeyPair(&pDhCtx->ffcDomain, pRndContext, pPrivKey, pPublKey); in CC_FfcDhGeneratePublPrivKeys() 1019 pPrivKey = &pDhCtx->ephemPrivKey[0]; in CC_FfcDhGeneratePublPrivKeys() 1022 err = FfcDhGenKeyPair(&pDhCtx->ffcDomain, pRndContext, pPrivKey, pPublKey); in CC_FfcDhGeneratePublPrivKeys()
|