/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/ec_wrst/ |
D | cc_ecpki_kg.c | 51 … CCRndContext_t *pRndContext, /*in/out*/ in CC_EcpkiKeyPairGenerateBase() argument 70 if (pRndContext == NULL) in CC_EcpkiKeyPairGenerateBase() 104 err = CC_RndGenerateVectorInRange(pRndContext, (uint32_t)pDomain->ordSizeInBits, in CC_EcpkiKeyPairGenerateBase() 115 err = FIPS_ECC_VALIDATE(pRndContext, pUserPrivKey, pUserPublKey, pFipsCtx); in CC_EcpkiKeyPairGenerateBase() 159 CCRndContext_t *pRndContext, /*in/out*/ in CC_EcpkiKeyPairGenerate() argument 171 return CC_EcpkiKeyPairGenerateBase(pRndContext, pDomain, pDomain->ecGx, pDomain->ecGy, in CC_EcpkiKeyPairGenerate()
|
D | cc_ecpki_local.h | 126 …CCRndContext_t *pRndContext, /*!< [in/out] A pointer to the random generati… 151 #define EcdsaSignFinish(pSignUserContext, pRndContext, pSignatureOut, pSignatureOutSize) \ argument 152 EcdsaSignFinishInt((pSignUserContext), (pRndContext), (pSignatureOut), (pSignatureOutSize), 1, NULL)
|
D | cc_ecdsa_sign.c | 330 CCRndContext_t *pRndContext, /*in/out*/ in EcdsaSignFinishInt() argument 368 if (pRndContext == NULL){ in EcdsaSignFinishInt() 459 pRndContext, pPrivKey, in EcdsaSignFinishInt() 532 CCRndContext_t *pRndContext, /*in/out*/ in CC_EcdsaSign() argument 562 err = EcdsaSignFinish(pSignUserContext, pRndContext, in CC_EcdsaSign()
|
D | cc_ecies.c | 129 CCRndContext_t *pRndContext, /*in*/ in EciesKemEncrypt() argument 228 error = CC_EcpkiKeyPairGenerate(pRndContext, /*in/out*/ in EciesKemEncrypt()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/ffc_domain/ |
D | cc_ffc_domain.c | 40 extern CCError_t RsaPrimeTestCall(CCRndContext_t *pRndContext, uint32_t *pPrimeP, int32_t sizeWords, 47 CCError_t RndGenerateWordsArrayInRange(CCRndContext_t *pRndContext, 359 … CCRndContext_t *pRndContext, /* [in] context defining used random function and state. */ in FfcFips186v4FindOrderQ() argument 384 CHECK_AND_SET_ERROR((pRndContext == NULL), CC_FFC_DOMAIN_INVALID_RND_CTX_PTR_ERROR); in FfcFips186v4FindOrderQ() 388 pRndState = (CCRndState_t*)&(pRndContext->rndState); in FfcFips186v4FindOrderQ() 389 RndGenerateVectFunc = pRndContext->rndGenerateVectFunc; in FfcFips186v4FindOrderQ() 448 CHECK_ERROR(RsaPrimeTestCall(pRndContext, pOrder, orderSizeWords, in FfcFips186v4FindOrderQ() 483 … CCRndContext_t *pRndContext, /* [in] context defining used random function and state. */ in FfcFips186v4FindPrimeP() argument 510 CHECK_AND_SET_ERROR(pRndContext == NULL, CC_FFC_DOMAIN_INVALID_RND_CTX_PTR_ERROR); in FfcFips186v4FindPrimeP() 616 CHECK_ERROR(RsaPrimeTestCall(pRndContext, pPrimeP, primeSizeWords, countRabMilTests, in FfcFips186v4FindPrimeP() [all …]
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/ |
D | cc_ecp_internal.c | 346 CCRndContext_t *pRndContext; in ecp_mont_gen_keypair_base() local 370 pRndContext = (CCRndContext_t *)(ecMontTempBuff + 1); in ecp_mont_gen_keypair_base() 371 pRndContext->rndGenerateVectFunc = (CCRndGenerateVectWorkFunc_t)f_rng; in ecp_mont_gen_keypair_base() 372 pRndContext->rndState = p_rng; in ecp_mont_gen_keypair_base() 376 … &resPointSize, scalar, &scalarSize, px, CC_EC_MONT_MOD_SIZE_IN_BYTES, pRndContext, ecMontTempBuff… in ecp_mont_gen_keypair_base() 380 … rc = CC_EcMontKeyPair(resPoint, &resPointSize, scalar, &scalarSize, pRndContext, ecMontTempBuff); in ecp_mont_gen_keypair_base() 461 CCRndContext_t *pRndContext; in ecp_wrst_gen_keypair_base() local 489 pRndContext = (CCRndContext_t *)(pTempBuff + 1); in ecp_wrst_gen_keypair_base() 490 pUserPrivKey = (CCEcpkiUserPrivKey_t *)(pRndContext + 1); in ecp_wrst_gen_keypair_base() 493 pRndContext->rndGenerateVectFunc = (CCRndGenerateVectWorkFunc_t)f_rng; in ecp_wrst_gen_keypair_base() [all …]
|
D | rsa_alt.c | 342 CCRndContext_t *pRndContext = &rndContext; in mbedtls_rsa_gen_key() local 380 pRndContext->rndState = p_rng; in mbedtls_rsa_gen_key() 382 err = CC_RndSetGenerateVectorFunc(pRndContext, f_rng); in mbedtls_rsa_gen_key() 430 pRndContext, in mbedtls_rsa_gen_key()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/ec_mont/ |
D | cc_ec_mont.c | 239 … CCRndContext_t *pRndContext, /*!< [in/out] Pointer to the RND context buffer. */ in ecMontKeyPairBase() argument 256 pRndContext == NULL || pEcMontTempBuff == NULL) { in ecMontKeyPairBase() 273 RndGenerateVectFunc = pRndContext->rndGenerateVectFunc; in ecMontKeyPairBase() 278 (void *)pRndContext->rndState, in ecMontKeyPairBase() 353 … CCRndContext_t *pRndContext, /*!< [in/out] Pointer to the RND context buffer. */ in CC_EcMontKeyPairBase() argument 361 …return ecMontKeyPairBase(pPublKey, pPublKeySize, pSecrKey, pSecrKeySize, pInPoint, pRndContext, pE… in CC_EcMontKeyPairBase() 387 … CCRndContext_t *pRndContext, /*!< [in/out] Pointer to the RND context buffer. */ in CC_EcMontKeyPair() argument 391 …return ecMontKeyPairBase(pPublKey, pPublKeySize, pSecrKey, pSecrKeySize, NULL, pRndContext, pEcMon… in CC_EcMontKeyPair()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/shared/include/crypto_api/ |
D | cc_ecpki_kg.h | 38 … CCRndContext_t *pRndContext, /*!< [in/out] Pointer to the RND context buffer. */ 59 … CCRndContext_t *pRndContext, /*!< [in/out] Pointer to RND context. */
|
D | cc_ffc_domain.h | 246 CCRndContext_t *pRndContext, /*!< [in] random generation function context. */ 279 CCRndContext_t *pRndContext, /*!< [in] random generation function context. */ 309 …CCRndContext_t *pRndContext, /*!< [in] optional (used on Full Validation mode only), random ge… 387 CCRndContext_t *pRndContext, /*!< [in] random generation function context. */
|
D | cc_ecpki_ecdsa.h | 51 …CCRndContext_t *pRndContext, /*!< [in/out] Pointer to the RND context buffer. */
|
D | cc_ffcdh.h | 578 … CCRndContext_t *pRndContext /*!< [in] random generation function context. */ 684 … CCRndContext_t *pRndContext); /*!< [in] random generation function context. */
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/cc3x_sym/api/ |
D | mbedtls_cc_ecies.c | 201 CCRndContext_t *pRndContext = NULL; in mbedtls_ecies_kem_encrypt_full() local 309 pRndContext = mbedtls_calloc(1, sizeof(CCRndContext_t)); in mbedtls_ecies_kem_encrypt_full() 310 if (pRndContext == NULL) in mbedtls_ecies_kem_encrypt_full() 324 pRndContext->rndGenerateVectFunc = (CCRndGenerateVectWorkFunc_t)f_rng; in mbedtls_ecies_kem_encrypt_full() 325 pRndContext->rndState = p_rng; in mbedtls_ecies_kem_encrypt_full() 328 error = CC_EcpkiKeyPairGenerate(pRndContext, /*in/out*/ in mbedtls_ecies_kem_encrypt_full() 335 CC_PalMemSetZero(pRndContext, sizeof(*pRndContext)); in mbedtls_ecies_kem_encrypt_full() 336 mbedtls_free(pRndContext); in mbedtls_ecies_kem_encrypt_full()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/rsa/ |
D | rsa_genkey.c | 111 extern CCError_t RndGenerateWordsArrayInRange(CCRndContext_t *pRndContext, 261 static CCError_t PkaRsaKgX931MillerRabinTest(CCRndContext_t *pRndContext, /*!< [in/out] Pointer t… in PkaRsaKgX931MillerRabinTest() argument 328 pRndContext, in PkaRsaKgX931MillerRabinTest() 548 static CCError_t PkaRsaKgX931FindPrime1(CCRndContext_t *pRndContext, /*!< [in/out] Pointer to the … in PkaRsaKgX931FindPrime1() argument 643 error = PkaRsaKgX931MillerRabinTest(pRndContext, in PkaRsaKgX931FindPrime1() 681 static CCError_t PkaRsaKgX931FindPrime2(CCRndContext_t *pRndContext, /*!< [in/out] Pointer to the … in PkaRsaKgX931FindPrime2() argument 795 error = PkaRsaKgX931MillerRabinTest(pRndContext, in PkaRsaKgX931FindPrime2() 856 static CCError_t RsaKgX931FindPrime(CCRndContext_t *pRndContext, /*!< [in/out] Pointer to the RND … in RsaKgX931FindPrime() argument 890 error = PkaRsaKgX931FindPrime1( pRndContext, in RsaKgX931FindPrime() 899 error = PkaRsaKgX931FindPrime1( pRndContext, in RsaKgX931FindPrime() [all …]
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/ec_edw/ |
D | cc_ec_edw.c | 235 CCRndContext_t *pRndContext, /*!< [in/out] Pointer to the RND context buffer. */ in CC_EcEdwKeyPair() argument 254 if (pRndContext == NULL) in CC_EcEdwKeyPair() 269 pRndState = (CCRndState_t *)(pRndContext->rndState); in CC_EcEdwKeyPair() 270 RndGenerateVectFunc = pRndContext->rndGenerateVectFunc; in CC_EcEdwKeyPair()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/shared/include/crypto_api/cc3x/ |
D | cc_ec_mont_api.h | 147 … CCRndContext_t *pRndContext, /*!< [in/out] Pointer to the RND context buffer. */ 177 … CCRndContext_t *pRndContext, /*!< [in/out] Pointer to the RND context buffer. */
|
D | cc_ec_edw_api.h | 155 … CCRndContext_t *pRndContext, /*!< [in/out] Pointer to the RND context buffer. */
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/ |
D | cc3xx_psa_asymmetric_encryption.c | 50 CCRndContext_t *pRndContext = &rndContext; in cc3xx_internal_rsa_encrypt() local 56 status = cc3xx_ctr_drbg_get_ctx(pRndContext); in cc3xx_internal_rsa_encrypt() 91 error = CC_RsaOaepEncrypt(pRndContext, in cc3xx_internal_rsa_encrypt() 104 error = CC_RsaPkcs1V15Encrypt(pRndContext, in cc3xx_internal_rsa_encrypt()
|
D | cc3xx_psa_key_generation.c | 81 CCRndContext_t *pRndContext; in cc3xx_internal_gen_ecc_wstr_keypair() local 111 pRndContext = (CCRndContext_t *)(pTempBuff + 1); in cc3xx_internal_gen_ecc_wstr_keypair() 112 pUserPrivKey = (CCEcpkiUserPrivKey_t *)(pRndContext + 1); in cc3xx_internal_gen_ecc_wstr_keypair() 115 err = cc3xx_ctr_drbg_get_ctx(pRndContext); in cc3xx_internal_gen_ecc_wstr_keypair() 122 rc = CC_EcpkiKeyPairGenerate(pRndContext, pDomain, pUserPrivKey, in cc3xx_internal_gen_ecc_wstr_keypair()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/host/src/cc3x_lib/ |
D | cc_fips_defs.h | 16 #define FIPS_ECC_VALIDATE(pRndContext, pUserPrivKey, pUserPublKey, pFipsCtx) (CC_OK) argument
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/ffcdh/ |
D | cc_ffcdh.c | 885 CCRndContext_t *pRndContext, /*!< [in] random generation function context. */ in FfcDhGenKeyPair() argument 896 pRndContext, /*in*/ in FfcDhGenKeyPair() 953 … CCRndContext_t *pRndContext ) /*!< [in] random generation function context. */ in CC_FfcDhGeneratePublPrivKeys() argument 983 CHECK_AND_RETURN_ERROR(pRndContext == NULL, CC_RND_CONTEXT_PTR_INVALID_ERROR); in CC_FfcDhGeneratePublPrivKeys() 984 pRndState = (CCRndState_t*)&(pRndContext->rndState); in CC_FfcDhGeneratePublPrivKeys() 985 RndGenerateVectFunc = pRndContext->rndGenerateVectFunc; in CC_FfcDhGeneratePublPrivKeys() 1010 err = FfcDhGenKeyPair(&pDhCtx->ffcDomain, pRndContext, pPrivKey, pPublKey); in CC_FfcDhGeneratePublPrivKeys() 1022 err = FfcDhGenKeyPair(&pDhCtx->ffcDomain, pRndContext, pPrivKey, pPublKey); in CC_FfcDhGeneratePublPrivKeys() 1488 … CCRndContext_t *pRndContext) /*!< [in] random generation function context. */ in CC_FfcDhGenerateRandomNonce() argument 1517 CHECK_AND_SET_ERROR(pRndContext == NULL, CC_RND_CONTEXT_PTR_INVALID_ERROR); in CC_FfcDhGenerateRandomNonce() [all …]
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/ec_wrst/ |
D | ec_wrst.h | 85 CCError_t EcWrstDsaSign(CCRndContext_t *pRndContext,
|
D | ec_wrst_dsa.c | 188 CCError_t EcWrstDsaSign(CCRndContext_t *pRndContext, /*!< [in/out] Pointer to the RND co… in EcWrstDsaSign() argument 233 … pRndContext, pDomain->ordSizeInBits, (uint8_t*)pMaxVect/* maxVect*/, (uint8_t*)pEphemKeyBuf); in EcWrstDsaSign()
|