Home
last modified time | relevance | path

Searched refs:ccmWorkingContext_ptr (Results 1 – 2 of 2) sorted by relevance

/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/rsa/
Dcc_rsa_verify.c86 RSAPubContext_t *ccmWorkingContext_ptr; in CC_RsaVerifyInit() local
101 ccmWorkingContext_ptr = (RSAPubContext_t*)UserContext_ptr->context_buff; in CC_RsaVerifyInit()
171 ccmWorkingContext_ptr->RsaHashOperationMode = rsaHashMode; in CC_RsaVerifyInit()
178 ccmWorkingContext_ptr->HashOperationMode = RsaHashInfo_t[rsaHashMode].hashMode; in CC_RsaVerifyInit()
179 ccmWorkingContext_ptr->HASH_Result_Size = RsaHashInfo_t[rsaHashMode].hashResultSize; in CC_RsaVerifyInit()
181 if ( (ccmWorkingContext_ptr->HashOperationMode == CC_HASH_SHA384_mode) || in CC_RsaVerifyInit()
182 (ccmWorkingContext_ptr->HashOperationMode == CC_HASH_SHA512_mode) ) in CC_RsaVerifyInit()
183 ccmWorkingContext_ptr->HashBlockSize = CC_HASH_SHA512_BLOCK_SIZE_IN_WORDS; in CC_RsaVerifyInit()
185 ccmWorkingContext_ptr->HashBlockSize = CC_HASH_BLOCK_SIZE_IN_WORDS; in CC_RsaVerifyInit()
193 ccmWorkingContext_ptr->doHash = true; /* for actual Hash modes */ in CC_RsaVerifyInit()
[all …]
Dcc_rsa_sign.c86 RSAPrivContext_t *ccmWorkingContext_ptr; in CC_RsaSignInit() local
98 ccmWorkingContext_ptr = (RSAPrivContext_t*)((void*)UserContext_ptr->context_buff); in CC_RsaSignInit()
161 ccmWorkingContext_ptr->RsaHashOperationMode = rsaHashMode; in CC_RsaSignInit()
168 ccmWorkingContext_ptr->HashOperationMode = RsaHashInfo_t[rsaHashMode].hashMode; in CC_RsaSignInit()
169 ccmWorkingContext_ptr->HASH_Result_Size = RsaHashInfo_t[rsaHashMode].hashResultSize; in CC_RsaSignInit()
171 if ( (ccmWorkingContext_ptr->HashOperationMode == CC_HASH_SHA384_mode) || in CC_RsaSignInit()
172 (ccmWorkingContext_ptr->HashOperationMode == CC_HASH_SHA512_mode) ) in CC_RsaSignInit()
173 ccmWorkingContext_ptr->HashBlockSize = CC_HASH_SHA512_BLOCK_SIZE_IN_WORDS; in CC_RsaSignInit()
175 ccmWorkingContext_ptr->HashBlockSize = CC_HASH_BLOCK_SIZE_IN_WORDS; in CC_RsaSignInit()
184 ccmWorkingContext_ptr->doHash = true; /* for actual Hash modes */ in CC_RsaSignInit()
[all …]