mbedtls_cipher_auth_decrypt() is only used within mbed TLS Library.
 
Symbols
loading...
Files
loading...
SummarySyntaxArgumentsRelatedReferences

Return value

\c 0 on success. #MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA on parameter-verification failure. #MBEDTLS_ERR_CIPHER_AUTH_FAILED if data is not authentic. A cipher-specific error code on failure.

Notes

This function only supports AEAD algorithms, not key wrapping algorithms such as NIST_KW; for this, see mbedtls_cipher_auth_decrypt_ext(). If the data is not authentic, then the output buffer is zeroed out to prevent the unauthentic plaintext being used, making this interface safer. If the context is based on PSA (that is, it was set up with mbedtls_cipher_setup_psa()), then it is required that \c tag == input + len. That is, the tag must be appended to the ciphertext as recommended by RFC 5116.

References

from examples