11.12.3.4.247. Function sss_se05x_cipher_crypt_ctr¶
Defined in File fsl_sss_se05x_apis.h
11.12.3.4.247.1. Function Documentation¶
-
sss_status_t
sss_se05x_cipher_crypt_ctr
(sss_se05x_symmetric_t *context, const uint8_t *srcData, uint8_t *destData, size_t size, uint8_t *initialCounter, uint8_t *lastEncryptedCounter, size_t *szLeft)¶ Symmetric AES in Counter mode in one blocking function call. The function blocks current thread until the operation completes or an error occurs.
- Return
Status of the operation
- Parameters
context
: Pointer to symmetric crypto context.srcData
: Buffer containing the input data.destData
: Buffer containing the output data.size
: Size of source and destination data buffers in bytes.[inout] initialCounter
: Input counter (Always 16 bytes) (updates on return). When using internal IV algorithms (only encrypt) for SE051, initialCounter buffer will be filled with genereted Initial counter.[out] lastEncryptedCounter
: Output cipher of last counter, for chained CTR calls. NULL can be passed if chained calls are not used.[out] szLeft
: Output number of bytes in left unused in lastEncryptedCounter block. NULL can be passed if chained calls are not used.
- Return Value
kStatus_SSS_Success
: The operation has completed successfully.kStatus_SSS_Fail
: The operation has failed.