mbedTLS + 0/1 examples
SourceVu will show references to mbedtls_gcm_auth_decrypt() from the following samples and libraries:
 
Symbols
loading...
Files
loading...
SummarySyntaxArgumentsRelatedExamplesReferencesCall TreeData Use

Return value

\c 0 if successful and authenticated. #MBEDTLS_ERR_GCM_AUTH_FAILED if the tag does not match. #MBEDTLS_ERR_GCM_BAD_INPUT if the lengths or pointers are not valid or a cipher-specific error code if the decryption failed.

Notes

For decryption, the output buffer cannot be the same as input buffer. If the buffers overlap, the output buffer must trail at least 8 Bytes behind the input buffer.