TLS encryption
Provides the encryption capability for records, including the AEAD and CBC algorithms. Encrypts the input factor (key parameter) and plaintext based on the record protocol to obtain the ciphertext.
- 注意
- : The protocol allows the sending of app packets with payload length 0. Therefore, the length of the plaintext input may be 0. Therefore, the plaintext with the length of 0 must be encrypted.
- 参数
-
cipher | [IN] Key parameters |
in | [IN] Plaintext data |
inLen | [IN] Plaintext data length |
out | [OUT] Ciphertext data |
outLen | [IN/OUT] IN: maximum buffer length OUT: ciphertext data length |
- 返回值
-
0 | indicates success. Other values indicate failure. |