|
◆ CRYPT_EAL_CipherFinal()
Fill the data with the size of the block and output the encrypted data; the AEAD tag is obtained through CRYPT_EAL_CipherCtrl. For block encryption algorithms such as CBC and ECB, padding must be set, In XTS mode, final needs to be called to obtain the last two blocks.
- 注意
- If the function is called by an external user and the error stack is concerned, you are advised to call BSL_ERR_ClearError() before calling this function.
- 参数
-
ctx | [IN] Symmetric encryption/decryption handle |
out | [OUT] Output the encrypted data |
outLen | [IN/OUT] Input: outLen >= blockSize Output: The output value for stream encryption is 0. If padding is set for CBC and ECB block encryption, the output value of outLen is blockSize. If the padding is not set for CBC and ECB block encryption and CTX contains cached data, an error is reported. If padding is not set for CBC and ECB block encryption, and no data is cached in the CTX, the output value of outLen is 0. |
- 返回值
-
|