File tree 1 file changed +6
-0
lines changed
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}
2305
2305
This 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
2306
2306
message tag. The definition of the variables is the same as it is for all the manual functions.
2307
2307
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
+
2308
2311
If you are processing many packets under the same key you shouldn't use this function as it invokes the pre--computation with each call.
2309
2312
2310
2313
\subsection {Example Usage }
@@ -2515,6 +2518,9 @@ \subsection{One--Shot Packet}
2515
2518
\textbf {CHACHA20POLY1305\_ DECRYPT }) the message text and store the final message tag. The definition of the
2516
2519
variables is the same as it is for all the manual functions.
2517
2520
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
+
2518
2524
\chapter {One-Way Cryptographic Hash Functions }
2519
2525
\mysection {Core Functions}
2520
2526
Like 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