Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(990)

Unified Diff: lib/freebl/chacha20poly1305.h

Issue 277040044: Bug 917571 - Add ChaCha20+Poly1305 cipher (Closed)
Patch Set: Use CC_IS_GCC instead of checking that CC_NAME==gcc Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/freebl/chacha20/chacha20_vec.c ('k') | lib/freebl/chacha20poly1305.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/freebl/chacha20poly1305.h
diff --git a/lib/freebl/chacha20poly1305.h b/lib/freebl/chacha20poly1305.h
new file mode 100644
index 0000000000000000000000000000000000000000..c77632aa1398003eb6086e0a9a1b25b010d4c464
--- /dev/null
+++ b/lib/freebl/chacha20poly1305.h
@@ -0,0 +1,15 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+#ifndef _CHACHA20_POLY1305_H_
+#define _CHACHA20_POLY1305_H_ 1
+
+/* ChaCha20Poly1305ContextStr saves the key and tag length for a
+ * ChaCha20+Poly1305 AEAD operation. */
+struct ChaCha20Poly1305ContextStr {
+ unsigned char key[32];
+ unsigned char tagLen;
+};
+
+#endif /* _CHACHA20_POLY1305_H_ */
« no previous file with comments | « lib/freebl/chacha20/chacha20_vec.c ('k') | lib/freebl/chacha20poly1305.c » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b