Home
last modified time | relevance | path

Searched refs:cfContext (Results 1 – 13 of 13) sorted by relevance

/hal_infineon-3.7.0/mtb-pdl-cat1/drivers/source/
Dcy_crypto_server.c442 cy_stc_crypto_context_str_t *cfContext = myData->xdata; in Cy_Crypto_Server_Process() local
443 …Data->resp = Cy_Crypto_Core_SetVuMemoryAddress(CY_CRYPTO_BASE, cfContext->src0, cfContext->dataSiz… in Cy_Crypto_Server_Process()
449 cy_stc_crypto_context_str_t *cfContext = myData->xdata; in Cy_Crypto_Server_Process() local
450 … *(uint32_t *)(cfContext->dst) = (uint32_t)Cy_Crypto_Core_GetVuMemoryAddress(CY_CRYPTO_BASE); in Cy_Crypto_Server_Process()
457 cy_stc_crypto_context_str_t *cfContext = myData->xdata; in Cy_Crypto_Server_Process() local
458 … *(uint32_t *)(cfContext->dst) = Cy_Crypto_Core_GetVuMemorySize(CY_CRYPTO_BASE); in Cy_Crypto_Server_Process()
468 cy_stc_crypto_context_prng_t *cfContext = myData->xdata; in Cy_Crypto_Server_Process() local
470cfContext->lfsr32InitState, cfContext->lfsr31InitState, cfContext->lfsr29InitState); in Cy_Crypto_Server_Process()
477 cy_stc_crypto_context_prng_t *cfContext = myData->xdata; in Cy_Crypto_Server_Process() local
479 cfContext->max, cfContext->prngNum); in Cy_Crypto_Server_Process()
[all …]
Dcy_crypto.c384 cy_stc_crypto_context_prng_t *cfContext) in Cy_Crypto_Prng_Init() argument
391 clientContext->xdata = (void *)cfContext; in Cy_Crypto_Prng_Init()
393 cfContext->lfsr32InitState = lfsr32InitState; in Cy_Crypto_Prng_Init()
394 cfContext->lfsr31InitState = lfsr31InitState; in Cy_Crypto_Prng_Init()
395 cfContext->lfsr29InitState = lfsr29InitState; in Cy_Crypto_Prng_Init()
399 SCB_CleanDCache_by_Addr((volatile void *)cfContext,(int32_t)sizeof(*cfContext)); in Cy_Crypto_Prng_Init()
410 cy_stc_crypto_context_prng_t *cfContext) in Cy_Crypto_Prng_Generate() argument
417 clientContext->xdata = (void *)cfContext; in Cy_Crypto_Prng_Generate()
419 cfContext->max = max; in Cy_Crypto_Prng_Generate()
420 cfContext->prngNum = randomNum; in Cy_Crypto_Prng_Generate()
[all …]
Dcy_cryptolite_sha256.c65 cy_stc_cryptolite_context_sha256_t *cfContext) in Cy_Cryptolite_Sha256_Process() argument
78 REG_CRYPTOLITE_SHA_DESCR(base) = (uint32_t)&(cfContext->message_schedule_struct); in Cy_Cryptolite_Sha256_Process()
87 REG_CRYPTOLITE_SHA_DESCR(base) = (uint32_t)&(cfContext->message_process_struct); in Cy_Cryptolite_Sha256_Process()
124 cy_stc_cryptolite_context_sha256_t *cfContext, in Cy_Cryptolite_Sha256_Process_aligned() argument
131 cfContext->message_schedule_struct.data1 = (uint32_t)message; in Cy_Cryptolite_Sha256_Process_aligned()
135 err = Cy_Cryptolite_Sha256_Process(base, cfContext); in Cy_Cryptolite_Sha256_Process_aligned()
138 cfContext->message_schedule_struct.data1 = (uint32_t)cfContext->message; in Cy_Cryptolite_Sha256_Process_aligned()
142 cfContext->messageSize+= CY_CRYPTOLITE_SHA256_BLOCK_SIZE; in Cy_Cryptolite_Sha256_Process_aligned()
143 cfContext->message_schedule_struct.data1+= CY_CRYPTOLITE_SHA256_BLOCK_SIZE; in Cy_Cryptolite_Sha256_Process_aligned()
146 cfContext->message_schedule_struct.data1 = (uint32_t)cfContext->message; in Cy_Cryptolite_Sha256_Process_aligned()
[all …]
Dcy_cryptolite_ecdsa.c516 cy_stc_cryptolite_context_ecdsa_t *cfContext, in Cy_Cryptolite_ECC_Init() argument
519 if(base == NULL || cfContext == NULL || eccBuffer == NULL) in Cy_Cryptolite_ECC_Init()
524 cfContext->my_BARRETT_U = eccBuffer->my_BARRETT_U; in Cy_Cryptolite_ECC_Init()
525 cfContext->my_P = eccBuffer->my_P; in Cy_Cryptolite_ECC_Init()
526 cfContext->dividend = eccBuffer->dividend; in Cy_Cryptolite_ECC_Init()
527 cfContext->p_r = eccBuffer->p_r; in Cy_Cryptolite_ECC_Init()
528 cfContext->p_s = eccBuffer->p_s; in Cy_Cryptolite_ECC_Init()
529 cfContext->p_u1 = eccBuffer->p_u1; in Cy_Cryptolite_ECC_Init()
530 cfContext->p_u2 = eccBuffer->p_u2; in Cy_Cryptolite_ECC_Init()
531 cfContext->p_o = eccBuffer->p_o; in Cy_Cryptolite_ECC_Init()
[all …]
Dcy_cryptolite_hmac.c59 cy_stc_cryptolite_context_hmac_sha256_t *cfContext) in Cy_Cryptolite_Hmac_Sha256_Init() argument
64 if ((NULL == base) || (NULL == cfContext)) in Cy_Cryptolite_Hmac_Sha256_Init()
69 cfContext->blocksize = (uint16_t)CY_CRYPTOLITE_SHA256_BLOCK_SIZE; in Cy_Cryptolite_Hmac_Sha256_Init()
70 cfContext->digestsize = (uint16_t)CY_CRYPTOLITE_SHA256_HASH_SIZE; in Cy_Cryptolite_Hmac_Sha256_Init()
72 status = Cy_Cryptolite_Sha256_Init( base, &cfContext->ctx_sha256); in Cy_Cryptolite_Hmac_Sha256_Init()
103 cy_stc_cryptolite_context_hmac_sha256_t *cfContext) in Cy_Cryptolite_Hmac_Sha256_Start() argument
114 if ((NULL == base) || (NULL == cfContext) || ((NULL == key) && (0UL != keyLength)) ) in Cy_Cryptolite_Hmac_Sha256_Start()
119 blockSizeTmp = cfContext->blocksize; in Cy_Cryptolite_Hmac_Sha256_Start()
120 digestSizeTmp = cfContext->digestsize; in Cy_Cryptolite_Hmac_Sha256_Start()
121 ipadPtrTmp = (uint8_t*)cfContext->ipad; in Cy_Cryptolite_Hmac_Sha256_Start()
[all …]
Dcy_cryptolite_nist_p.c68 cy_stc_cryptolite_context_ecdsa_t *cfContext,
76 cy_stc_cryptolite_context_ecdsa_t *cfContext, in Cryptolite_EC_Bar_MulRed() argument
88 uint8_t *my_P = cfContext->my_P; in Cryptolite_EC_Bar_MulRed()
89 uint8_t *my_BARRETT_U = cfContext->my_BARRETT_U; in Cryptolite_EC_Bar_MulRed()
92 cy_stc_cryptolite_descr_t *vu_struct0 = &cfContext->vu_desptr[0]; in Cryptolite_EC_Bar_MulRed()
93 cy_stc_cryptolite_descr_t *vu_struct1 = &cfContext->vu_desptr[1]; in Cryptolite_EC_Bar_MulRed()
120 cy_stc_cryptolite_context_ecdsa_t *cfContext,
125 cy_stc_cryptolite_context_ecdsa_t *cfContext, in Cryptolite_EC_MulRed() argument
131 Cryptolite_EC_Bar_MulRed(base, cfContext, z, x, (uint32_t)size); in Cryptolite_EC_MulRed()
148 cy_stc_cryptolite_context_ecdsa_t *cfContext, in Cryptolite_EC_MulMod() argument
[all …]
Dcy_cryptolite_rsa.c62 cy_stc_cryptolite_context_rsa_t *cfContext, in cryptolite_rsa_mont_inv_transform() argument
73 cy_stc_cryptolite_descr_t *vu_struct0 = &cfContext->vu_desptr[0U]; in cryptolite_rsa_mont_inv_transform()
74 cy_stc_cryptolite_descr_t *vu_struct1 = &cfContext->vu_desptr[1U]; in cryptolite_rsa_mont_inv_transform()
91 cy_stc_cryptolite_context_rsa_t *cfContext, in cryptolite_rsa_mont_transform() argument
101 cy_stc_cryptolite_descr_t *vu_struct0 = &cfContext->vu_desptr[0U]; in cryptolite_rsa_mont_transform()
102 cy_stc_cryptolite_descr_t *vu_struct1 = &cfContext->vu_desptr[1U]; in cryptolite_rsa_mont_transform()
119 cy_stc_cryptolite_context_rsa_t *cfContext, in cryptolite_rsa_mont_mul() argument
129 cy_stc_cryptolite_descr_t *vu_struct0 = &cfContext->vu_desptr[0U]; in cryptolite_rsa_mont_mul()
130 cy_stc_cryptolite_descr_t *vu_struct1 = &cfContext->vu_desptr[1U]; in cryptolite_rsa_mont_mul()
146 static uint32_t Cy_Cryptolite_Vu_Get_msb_bit(cy_stc_cryptolite_context_rsa_t *cfContext, uint8_t* p…
[all …]
/hal_infineon-3.7.0/mtb-pdl-cat1/drivers/include/
Dcy_crypto.h1012 cy_stc_crypto_context_prng_t *cfContext);
1042 cy_stc_crypto_context_prng_t *cfContext);
1075 cy_stc_crypto_context_aes_t *cfContext);
1109 cy_stc_crypto_context_aes_t *cfContext);
1148 cy_stc_crypto_context_aes_t *cfContext);
1188 cy_stc_crypto_context_aes_t *cfContext);
1241 cy_stc_crypto_context_aes_t *cfContext);
1286 cy_stc_crypto_context_aes_t *cfContext);
1330 cy_stc_crypto_context_sha_t *cfContext);
1380 cy_stc_crypto_context_sha_t *cfContext);
[all …]
Dcy_cryptolite_nist_p.h44 …istP_PointMul(CRYPTOLITE_Type *base, cy_stc_cryptolite_context_ecdsa_t *cfContext, uint8_t *p_x, u…
48 cy_stc_cryptolite_context_ecdsa_t *cfContext,
55 cy_stc_cryptolite_context_ecdsa_t *cfContext,
60 cy_stc_cryptolite_context_ecdsa_t *cfContext,
80 cy_stc_cryptolite_context_ecdsa_t *cfContext, in Cryptolite_EC_AddMod() argument
83 uint8_t *temp = cfContext->p_buf;//[VU_BITS_TO_BYTES(BIT_SIZE+1)]; in Cryptolite_EC_AddMod()
85 uint8_t *my_P = cfContext->my_P; in Cryptolite_EC_AddMod()
86 uint16_t bitsize = (uint16_t)cfContext->bitsize; in Cryptolite_EC_AddMod()
87 cy_stc_cryptolite_descr_t *vu_struct0 = &cfContext->vu_desptr[0]; in Cryptolite_EC_AddMod()
88 cy_stc_cryptolite_descr_t *vu_struct1 = &cfContext->vu_desptr[1]; in Cryptolite_EC_AddMod()
[all …]
Dcy_cryptolite_sha256.h113 cy_stc_cryptolite_context_sha256_t *cfContext);
135 cy_stc_cryptolite_context_sha256_t *cfContext);
169 cy_stc_cryptolite_context_sha256_t *cfContext);
195 cy_stc_cryptolite_context_sha256_t *cfContext);
217 cy_stc_cryptolite_context_sha256_t *cfContext);
259 cy_stc_cryptolite_context_sha256_t *cfContext);
Dcy_cryptolite_hmac.h106 cy_stc_cryptolite_context_hmac_sha256_t *cfContext);
141 cy_stc_cryptolite_context_hmac_sha256_t *cfContext);
176 … cy_stc_cryptolite_context_hmac_sha256_t *cfContext);
203 cy_stc_cryptolite_context_hmac_sha256_t *cfContext);
226 … cy_stc_cryptolite_context_hmac_sha256_t *cfContext);
277 cy_stc_cryptolite_context_hmac_sha256_t *cfContext);
Dcy_cryptolite_rsa.h174 cy_stc_cryptolite_context_rsa_t *cfContext,
217 cy_stc_cryptolite_context_rsa_t *cfContext,
250 cy_stc_cryptolite_context_rsa_t *cfContext,
275 cy_stc_cryptolite_context_rsa_t *cfContext);
326 cy_stc_cryptolite_context_rsa_t *cfContext,
Dcy_cryptolite_ecdsa.h197 cy_stc_cryptolite_context_ecdsa_t *cfContext,
231 cy_stc_cryptolite_context_ecdsa_t *cfContext,
254 cy_stc_cryptolite_context_ecdsa_t *cfContext);
295 cy_stc_cryptolite_context_ecdsa_t *cfContext,