File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -2305,6 +2305,9 @@ \subsection{One--Shot Packet}
23052305This will initialize the GCM state with the given key, IV and AAD value then proceed to encrypt or decrypt the message text and store the final
23062306message tag. The definition of the variables is the same as it is for all the manual functions.
23072307
2308+ IMPORTANT NOTICE: for \textit {direction == GCM\_ DECRYPT } the caller has to fill \textit {tag } and \textit {taglen } with expected
2309+ tag value. The \textit {gcm\_ memory } in decrypt mode validates the \textit {tag } value and returns \textit {CRYPT\_ ERROR } on mismatch.
2310+
23082311If you are processing many packets under the same key you shouldn't use this function as it invokes the pre--computation with each call.
23092312
23102313\subsection {Example Usage }
@@ -2515,6 +2518,9 @@ \subsection{One--Shot Packet}
25152518\textbf {CHACHA20POLY1305\_ DECRYPT }) the message text and store the final message tag. The definition of the
25162519variables is the same as it is for all the manual functions.
25172520
2521+ IMPORTANT NOTICE: for \textit {direction == CHACHA20POLY1305\_ DECRYPT } the caller has to fill \textit {tag } and \textit {taglen } with expected
2522+ tag value. The \textit {chacha20poly1305\_ memory } in decrypt mode validates the \textit {tag } value and returns \textit {CRYPT\_ ERROR } on mismatch.
2523+
25182524\chapter {One-Way Cryptographic Hash Functions }
25192525\mysection {Core Functions}
25202526Like the ciphers, there are hash core functions and a universal data type to hold the hash state called \textit {hash\_ state }. To initialize hash
You can’t perform that action at this time.
0 commit comments