Home
last modified time | relevance | path

Searched refs:rndState (Results 1 – 25 of 31) sorted by relevance

12

/trusted-firmware-m-3.7.0/platform/ext/accelerator/cc312/psa-adac/
Dadac_crypto_cc312_rng.c17 CCRndState_t rndState; in hardware_rng_poll() local
27 CC_PalMemSetZero(&rndState, sizeof(CCRndState_t)); in hardware_rng_poll()
38 &rndState, /*in/out*/ in hardware_rng_poll()
57 CC_PalMemSetZero(&rndState, sizeof(CCRndState_t)); in hardware_rng_poll()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/
Dcc3xx_psa_entropy.c36 CCRndState_t rndState; in cc3xx_get_entropy() local
62 CC_PalMemSetZero(&rndState, sizeof(CCRndState_t)); in cc3xx_get_entropy()
72 cc_err = LLF_RND_GetTrngSource(&rndState, /*in/out*/ in cc3xx_get_entropy()
92 CC_PalMemSetZero(&rndState, sizeof(CCRndState_t)); in cc3xx_get_entropy()
Dcc3xx_internal_drbg_util.c69 rnd_ctx->rndState = &global_ctr_drbg_ctx; in cc3xx_ctr_drbg_get_ctx()
132 rnd_ctx->rndState = hmac_drbg_ctx; in cc3xx_hmac_drbg_get_ctx()
Dcc3xx_psa_init.c75 CC312_pRndCtx->rndState = CC312_pRndState; in cc3xx_init()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/host/src/cc3x_productionlib/cmpu/
Dcmpu_llf_rnd.c45 CCRndState_t rndState; in CC_PROD_LLF_RND_GetTrngSource() local
53 error = LLF_RND_RunTrngStartupTest(&rndState, &trngParams, pRndWorkBuff); in CC_PROD_LLF_RND_GetTrngSource()
58 …error = LLF_RND_GetTrngSource(&rndState, &trngParams, CC_FALSE, NULL, ppSourceOut, pSourceOutSize,… in CC_PROD_LLF_RND_GetTrngSource()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/
Dtrng_api.c58 CCRndState_t rndState; in mbedtls_hardware_poll() local
88 CC_PalMemSetZero( &rndState, sizeof( CCRndState_t ) ); in mbedtls_hardware_poll()
99 &rndState , /*in/out*/ in mbedtls_hardware_poll()
123 mbedtls_zeroize_internal( &rndState, sizeof( CCRndState_t ) ); in mbedtls_hardware_poll()
Dplatform_alt.c103 pPlatTestCtx->rndContext_ptr->rndState = (void *)(g_testHwRndCtxBaseAddr+sizeof(CCRndContext_t)); in mbedtls_platform_setup()
Dcc_ecp_internal.c372 pRndContext->rndState = p_rng; in ecp_mont_gen_keypair_base()
494 pRndContext->rndState = p_rng; in ecp_wrst_gen_keypair_base()
Decdsa_alt.c127 rnd_ctx.rndState = p_rng; in ecdsa_wrst_sign()
Drsa_alt.c380 pRndContext->rndState = p_rng; in mbedtls_rsa_gen_key()
673 ccRndCtx.rndState = p_rng; in mbedtls_rsa_validate_params_alt()
1790 rndContext_ptr->rndState = p_rng; in mbedtls_rsa_rsaes_oaep_encrypt()
1910 rndContext_ptr->rndState = p_rng; in mbedtls_rsa_rsaes_pkcs1_v15_encrypt()
2321 rndContext.rndState = p_rng; in mbedtls_rsa_rsassa_pss_sign()
2420 rndContext.rndState = p_rng; in mbedtls_rsa_rsassa_pkcs1_v15_sign()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/host/src/cc3x_lib/
Dcc_lib.c47 CCRndState_t rndState; in RndStartupTest() local
74 error = LLF_RND_RunTrngStartupTest(&rndState, &trngParams, (uint32_t*)workBuff_ptr); in RndStartupTest()
99 error = RndGenerateVectFunc((void *)rndContext_ptr->rndState, in InitHukRma()
179 if (rndContext_ptr->rndState == NULL) in CC_LibInit()
247 mbedtls_ctr_drbg_init(rndContext_ptr->rndState); in CC_LibInit()
249 …error = mbedtls_ctr_drbg_seed(rndContext_ptr->rndState, mbedtls_entropy_func, rndContext_ptr->entr… in CC_LibInit()
300 mbedtls_ctr_drbg_free( rndContext_ptr->rndState ); in CC_LibFini()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/shared/include/crypto_api/cc3x/
Dcc_rnd_common.h194 void * rndState; member
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/host/src/tests/proj/cc3x/cc312_r1/
Dtest_proj_cclib.c27 gRndContext_ptr.rndState = threadArgs->p_rng; in Test_LibInit()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/cc3x_sym/api/
Dmbedtls_cc_srp.c160 rc = pRndCtx->rndGenerateVectFunc(pRndCtx->rndState, (unsigned char *)pSalt, saltSize); in mbedtls_srp_pwd_ver_create()
221 …rc = pRndCtx->rndGenerateVectFunc(pRndCtx->rndState, (unsigned char *)pCtx->ephemPriv, ephemPrivSi… in mbedtls_srp_host_pub_key_create()
352 …rc = pRndCtx->rndGenerateVectFunc(pRndCtx->rndState, (unsigned char *)pCtx->ephemPriv, ephemPrivSi… in mbedtls_srp_user_pub_key_create()
Dmbedtls_cc_ecies.c325 pRndContext->rndState = p_rng; in mbedtls_ecies_kem_encrypt_full()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/host/src/tests/integration_cc3x/runtime_integration_test/tests/
Drun_integration_ecies.c131 gpRndContext->rndState) == 0); in runIt_eciesRandom()
266 gpRndContext->rndState) == 0); in runIt_eciesVector()
/trusted-firmware-m-3.7.0/platform/ext/accelerator/cc312/
Dcc312.c80 CC312_pRndCtx->rndState = CC312_pRndState; in crypto_hw_accelerator_init()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/rsa/
Dcc_rsa_pkcs_ver15_util.c108 rndState_ptr = rndContext_ptr->rndState; in RsaGenRndNonZeroVect()
Dcc_rsa_pss21_util.c311 rndState_ptr = rndContext_ptr->rndState; in RsaPssSign21()
Dcc_rsa_kg.c541 rndState_ptr = rndContext_ptr->rndState; in CC_RsaGenerateVectorInRangeX931()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/host/src/tests/integration_cc3x/runtime_integration_test/
Drun_integration_test.c162 RunItPtr rndState; in runIt_init() local
177 ALLOC_STRUCT(mbedtls_ctr_drbg_context, rndState, pRndState); in runIt_init()
181 pRndContex->rndState = pRndState; in runIt_init()
187 gRunIt_rndState_ptr = rndState; in runIt_init()
Drun_integration_helper.c222 … if (gpRndContext->rndGenerateVectFunc(gpRndContext->rndState, pBuf + doneSize, chunkSize) == 0) in runIt_buildRandomBuffer()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/ec_edw/
Dcc_ec_edw.c269 pRndState = (CCRndState_t *)(pRndContext->rndState); in CC_EcEdwKeyPair()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/rnd_dma/
Dcc_rnd_common.c202 rndState_ptr = (CCRndState_t *)(rndContext_ptr->rndState); in CC_RndGenerateVectorInRange()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/ec_mont/
Dcc_ec_mont.c278 (void *)pRndContext->rndState, in ecMontKeyPairBase()

12