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

Return value

\c 0 on success. #MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA on parameter-verification failure.

Notes

With non-AEAD ciphers, the order of calls for each message is as follows: 1. mbedtls_cipher_set_iv() if the mode uses an IV/nonce. 2. mbedtls_cipher_reset() 3. mbedtls_cipher_update() one or more times 4. mbedtls_cipher_finish() . This sequence can be repeated to encrypt or decrypt multiple messages with the same key. With AEAD ciphers, the order of calls for each message is as follows: 1. mbedtls_cipher_set_iv() if the mode uses an IV/nonce. 2. mbedtls_cipher_reset() 3. mbedtls_cipher_update_ad() 4. mbedtls_cipher_update() one or more times 5. mbedtls_cipher_finish() 6. mbedtls_cipher_check_tag() (for decryption) or mbedtls_cipher_write_tag() (for encryption). . This sequence can be repeated to encrypt or decrypt multiple messages with the same key.

References

from 0/1 examples