Home
last modified time | relevance | path

Searched refs:PrimeData_ptr (Results 1 – 7 of 7) sorted by relevance

/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/rsa/
Dcc_rsa_prim.c66 CCRsaPrimeData_t *PrimeData_ptr, in CC_RsaPrimEncrypt() argument
101 if (PrimeData_ptr == NULL) in CC_RsaPrimEncrypt()
113 if (DataSize > sizeof(PrimeData_ptr->DataIn)) in CC_RsaPrimEncrypt()
127 CC_PalMemSet(PrimeData_ptr->DataIn, 0, sizeof(PrimeData_ptr->DataIn)); in CC_RsaPrimEncrypt()
130 Error = CC_CommonConvertMsbLsbBytesToLswMswWords(PrimeData_ptr->DataIn, 4*((nSizeInBytes+3)/4), in CC_RsaPrimEncrypt()
139 PrimeData_ptr->DataIn, (uint16_t)(nSizeInBytes+3)/4, in CC_RsaPrimEncrypt()
148 Error = RsaExecPubKeyExp(PubKey_ptr, PrimeData_ptr); in CC_RsaPrimEncrypt()
157 PrimeData_ptr->DataOut, nSizeInBytes ); in CC_RsaPrimEncrypt()
168 CC_PalMemSetZero(PrimeData_ptr, sizeof(CCRsaPrimeData_t) ); in CC_RsaPrimEncrypt()
213 CCRsaPrimeData_t *PrimeData_ptr, in CC_RsaPrimDecrypt() argument
[all …]
Dcc_rsa_oaep.c59 CCRsaPrimeData_t *PrimeData_ptr,/* temp buffer */ in RsaPssOaepEncode() argument
71 uint8_t *MaskDB_Ptr =((CCRsaOaepData_t*)((void*)PrimeData_ptr->InternalBuff))->MaskDB; in RsaPssOaepEncode()
188 … (unsigned char *)((CCRsaOaepData_t*)((void*)PrimeData_ptr->InternalBuff))->HashResultBuff); in RsaPssOaepEncode()
193 … ((CCRsaOaepData_t*)((void*)PrimeData_ptr->InternalBuff))->HashResultBuff); in RsaPssOaepEncode()
200 md_ctx = &(((CCRsaOaepData_t*)((void*)PrimeData_ptr->InternalBuff))->hash_ctx); in RsaPssOaepEncode()
212 … Error=CC_HashInit(&(((CCRsaOaepData_t*)((void*)PrimeData_ptr->InternalBuff))->HashUsercontext), in RsaPssOaepEncode()
219 …mbedtls_md_finish(md_ctx, (unsigned char *)((CCRsaOaepData_t*)((void*)PrimeData_ptr->InternalBuff)… in RsaPssOaepEncode()
221 …Error=CC_HashFinish( &(((CCRsaOaepData_t*)((void*)PrimeData_ptr->InternalBuff))->HashUsercontext) , in RsaPssOaepEncode()
222 … ((CCRsaOaepData_t*)((void*)PrimeData_ptr->InternalBuff))->HashResultBuff); in RsaPssOaepEncode()
229 …CC_PalMemCopy(&EM_ptr[HashOutputSize], (uint8_t *)(((CCRsaOaepData_t*)((void*)PrimeData_ptr->Inter… in RsaPssOaepEncode()
[all …]
Dcc_rsa_schemes.c84 CCRsaPrimeData_t *PrimeData_ptr, in CC_RsaSchemesEncrypt() argument
121 if (PrimeData_ptr == NULL) in CC_RsaSchemesEncrypt()
258PrimeData_ptr, /*! temp buffer 1 structure for imternal use */ in CC_RsaSchemesEncrypt()
275 PrimeData_ptr, in CC_RsaSchemesEncrypt()
284 CC_PalMemSetZero(PrimeData_ptr, sizeof(CCRsaPrimeData_t)); in CC_RsaSchemesEncrypt()
342 CCRsaPrimeData_t *PrimeData_ptr, in CC_RsaSchemesDecrypt() argument
384 if (PrimeData_ptr == NULL) in CC_RsaSchemesDecrypt()
490 PrimeData_ptr, in CC_RsaSchemesDecrypt()
588 PrimeData_ptr, in CC_RsaSchemesDecrypt()
603 CC_PalMemSetZero(PrimeData_ptr, sizeof(CCRsaPrimeData_t)); in CC_RsaSchemesDecrypt()
Dcc_rsa_local.h165 CCRsaPrimeData_t *PrimeData_ptr,/* temp buffer */
181 CCRsaPrimeData_t *PrimeData_ptr, /*Only for stack memory save*/
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/shared/include/crypto_api/
Dcc_rsa_schemes.h47 …CCRsaPrimeData_t *PrimeData_ptr, /*!< [in] Pointer to a temporary structure that is intern…
84 #define CC_RsaOaepEncrypt(rndContext_ptr, UserPubKey_ptr,PrimeData_ptr,HashMode,L,Llen,MGF,Data_ptr… argument
85 …CC_RsaSchemesEncrypt(rndContext_ptr, UserPubKey_ptr,PrimeData_ptr,HashMode,L,Llen,MGF,Data_ptr,Dat…
92 #define CC_RsaPkcs1V15Encrypt(rndContext_ptr, UserPubKey_ptr,PrimeData_ptr,DataIn_ptr,DataInSize,Ou… argument
93 …CC_RsaSchemesEncrypt(rndContext_ptr, UserPubKey_ptr,PrimeData_ptr,CC_RSA_HASH_NO_HASH_mode,NULL,0,…
108 …CCRsaPrimeData_t *PrimeData_ptr, /*!< [in] Pointer to a temporary structure that is inter…
156 #define CC_RsaOaepDecrypt(UserPrivKey_ptr,PrimeData_ptr,HashMode,L,Llen,MGF,Data_ptr,DataSize,Outpu… argument
157 …CC_RsaSchemesDecrypt(UserPrivKey_ptr,PrimeData_ptr,HashMode,L,Llen,MGF,Data_ptr,DataSize,Output_pt…
164 #define CC_RsaPkcs1V15Decrypt(UserPrivKey_ptr,PrimeData_ptr,DataIn_ptr,DataInSize,Output_ptr,Output… argument
165 …CC_RsaSchemesDecrypt(UserPrivKey_ptr,PrimeData_ptr,CC_RSA_HASH_NO_HASH_mode,NULL,0,CC_PKCS1_NO_MGF…
Dcc_rsa_prim.h49 …CCRsaPrimeData_t *PrimeData_ptr, /*!< [in] Pointer to a temporary structure containing in…
76 …CCRsaPrimeData_t *PrimeData_ptr, /*!< [in] Pointer to a temporary structure containing in…
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/
Drsa_alt.c1610 CCRsaPrimeData_t * PrimeData_ptr = NULL; in mbedtls_rsa_public() local
1637 PrimeData_ptr = (CCRsaPrimeData_t *)mbedtls_calloc(1, sizeof(CCRsaPrimeData_t)); in mbedtls_rsa_public()
1638 if (PrimeData_ptr == NULL) { in mbedtls_rsa_public()
1648 …Error = CC_RsaPrimEncrypt(UserPubKey_ptr, PrimeData_ptr, (unsigned char *)input, ctx->MBEDTLS_PRIV… in mbedtls_rsa_public()
1655 mbedtls_zeroize_internal(PrimeData_ptr, sizeof(CCRsaPrimeData_t)); in mbedtls_rsa_public()
1656 mbedtls_free(PrimeData_ptr); in mbedtls_rsa_public()
1681 CCRsaPrimeData_t * PrimeData_ptr = NULL; in mbedtls_rsa_private() local
1714 PrimeData_ptr = (CCRsaPrimeData_t *)mbedtls_calloc(1, sizeof(CCRsaPrimeData_t)); in mbedtls_rsa_private()
1715 if ( PrimeData_ptr == NULL ) { in mbedtls_rsa_private()
1729 …Error = CC_RsaPrimDecrypt(UserPrivKey_ptr, PrimeData_ptr, (unsigned char *)input, ctx->MBEDTLS_PRI… in mbedtls_rsa_private()
[all …]