Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1446)

Unified Diff: nss/lib/freebl/blapi.h

Issue 27510015: Support ChaCha20+Poly1305 cipher suites. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/nss/
Patch Set: After first review Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « nss.gyp ('k') | nss/lib/freebl/chacha20/chacha20.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: nss/lib/freebl/blapi.h
===================================================================
--- nss/lib/freebl/blapi.h (revision 228205)
+++ nss/lib/freebl/blapi.h (working copy)
@@ -818,7 +818,27 @@
unsigned int *outputLen, unsigned int maxOutputLen,
const unsigned char *input, unsigned int inputLen);
+/******************************************/
+/*
+** ChaCha20+Poly1305 AEAD
+*/
+extern SECStatus ChaCha20Poly1305_Seal(
+ unsigned char *out,
+ const unsigned char *ad, unsigned int adLen,
agl 2013/10/21 21:53:39 I think this is fine, but it limits the API to han
+ const unsigned char *plaintext, unsigned int plaintextLen,
+ unsigned int tagLen,
+ const unsigned char key[32],
+ const unsigned char nonce[8]);
+
+extern SECStatus ChaCha20Poly1305_Open(
+ unsigned char *out,
+ const unsigned char *ad, unsigned int adLen,
+ const unsigned char *ciphertext, unsigned int ciphertextLen,
+ unsigned int tagLen,
+ const unsigned char key[32],
+ const unsigned char nonce[8]);
+
/******************************************/
/*
** MD5 secure hash function
« no previous file with comments | « nss.gyp ('k') | nss/lib/freebl/chacha20/chacha20.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698