Home
last modified time | relevance | path

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

/NetX-Duo-v6.3.0/crypto_libraries/src/
Dnx_crypto_cbc.c132 UCHAR *last_cipher; in _nx_crypto_cbc_encrypt() local
153 last_cipher = cbc_metadata -> nx_crypto_cbc_last_block; in _nx_crypto_cbc_encrypt()
159 _nx_crypto_cbc_xor(&input[i], last_cipher, output, block_size); in _nx_crypto_cbc_encrypt()
165 last_cipher = output; in _nx_crypto_cbc_encrypt()
171 …NX_CRYPTO_MEMCPY(cbc_metadata -> nx_crypto_cbc_last_block, last_cipher, block_size); /* Use case o… in _nx_crypto_cbc_encrypt()
233 UCHAR *last_cipher; in _nx_crypto_cbc_decrypt() local
254 last_cipher = cbc_metadata -> nx_crypto_cbc_last_block; in _nx_crypto_cbc_decrypt()
266 _nx_crypto_cbc_xor(&output[i], last_cipher, &output[i], block_size); in _nx_crypto_cbc_decrypt()
268 NX_CRYPTO_MEMCPY(last_cipher, save_input, block_size); /* Use case of memcpy is verified. */ in _nx_crypto_cbc_decrypt()
Dnx_crypto_ccm.c152 UCHAR last_cipher[NX_CRYPTO_CCM_BLOCK_SIZE]; in _nx_crypto_ccm_cbc_pad() local
154 NX_CRYPTO_MEMCPY(last_cipher, iv, block_size); /* Use case of memcpy is verified. */ in _nx_crypto_ccm_cbc_pad()
165 _nx_crypto_ccm_xor(output, last_cipher, output); in _nx_crypto_ccm_cbc_pad()
169 _nx_crypto_ccm_xor(input + i, last_cipher, output); in _nx_crypto_ccm_cbc_pad()
173 crypto_function(crypto_metadata, output, last_cipher, block_size); in _nx_crypto_ccm_cbc_pad()
177 NX_CRYPTO_MEMCPY(output, last_cipher, block_size); /* Use case of memcpy is verified. */ in _nx_crypto_ccm_cbc_pad()
180 NX_CRYPTO_MEMSET(last_cipher, 0, sizeof(last_cipher)); in _nx_crypto_ccm_cbc_pad()