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

Side by Side Diff: nss/lib/freebl/blapit.h

Issue 27510015: Support ChaCha20+Poly1305 cipher suites. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/nss/
Patch Set: Fold long lines 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « nss/lib/freebl/blapi.h ('k') | nss/lib/freebl/chacha20/chacha20.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * blapit.h - public data structures for the crypto library 2 * blapit.h - public data structures for the crypto library
3 * 3 *
4 * This Source Code Form is subject to the terms of the Mozilla Public 4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this 5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 7
8 #ifndef _BLAPIT_H_ 8 #ifndef _BLAPIT_H_
9 #define _BLAPIT_H_ 9 #define _BLAPIT_H_
10 10
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 struct RC5ContextStr ; 215 struct RC5ContextStr ;
216 struct AESContextStr ; 216 struct AESContextStr ;
217 struct CamelliaContextStr ; 217 struct CamelliaContextStr ;
218 struct MD2ContextStr ; 218 struct MD2ContextStr ;
219 struct MD5ContextStr ; 219 struct MD5ContextStr ;
220 struct SHA1ContextStr ; 220 struct SHA1ContextStr ;
221 struct SHA256ContextStr ; 221 struct SHA256ContextStr ;
222 struct SHA512ContextStr ; 222 struct SHA512ContextStr ;
223 struct AESKeyWrapContextStr ; 223 struct AESKeyWrapContextStr ;
224 struct SEEDContextStr ; 224 struct SEEDContextStr ;
225 struct ChaCha20Poly1305ContextStr;
225 226
226 typedef struct DESContextStr DESContext; 227 typedef struct DESContextStr DESContext;
227 typedef struct RC2ContextStr RC2Context; 228 typedef struct RC2ContextStr RC2Context;
228 typedef struct RC4ContextStr RC4Context; 229 typedef struct RC4ContextStr RC4Context;
229 typedef struct RC5ContextStr RC5Context; 230 typedef struct RC5ContextStr RC5Context;
230 typedef struct AESContextStr AESContext; 231 typedef struct AESContextStr AESContext;
231 typedef struct CamelliaContextStr CamelliaContext; 232 typedef struct CamelliaContextStr CamelliaContext;
232 typedef struct MD2ContextStr MD2Context; 233 typedef struct MD2ContextStr MD2Context;
233 typedef struct MD5ContextStr MD5Context; 234 typedef struct MD5ContextStr MD5Context;
234 typedef struct SHA1ContextStr SHA1Context; 235 typedef struct SHA1ContextStr SHA1Context;
235 typedef struct SHA256ContextStr SHA256Context; 236 typedef struct SHA256ContextStr SHA256Context;
236 /* SHA224Context is really a SHA256ContextStr. This is not a mistake. */ 237 /* SHA224Context is really a SHA256ContextStr. This is not a mistake. */
237 typedef struct SHA256ContextStr SHA224Context; 238 typedef struct SHA256ContextStr SHA224Context;
238 typedef struct SHA512ContextStr SHA512Context; 239 typedef struct SHA512ContextStr SHA512Context;
239 /* SHA384Context is really a SHA512ContextStr. This is not a mistake. */ 240 /* SHA384Context is really a SHA512ContextStr. This is not a mistake. */
240 typedef struct SHA512ContextStr SHA384Context; 241 typedef struct SHA512ContextStr SHA384Context;
241 typedef struct AESKeyWrapContextStr AESKeyWrapContext; 242 typedef struct AESKeyWrapContextStr AESKeyWrapContext;
242 typedef struct SEEDContextStr SEEDContext; 243 typedef struct SEEDContextStr SEEDContext;
244 typedef struct ChaCha20Poly1305ContextStr ChaCha20Poly1305Context;
243 245
244 /*************************************************************************** 246 /***************************************************************************
245 ** RSA Public and Private Key structures 247 ** RSA Public and Private Key structures
246 */ 248 */
247 249
248 /* member names from PKCS#1, section 7.1 */ 250 /* member names from PKCS#1, section 7.1 */
249 struct RSAPublicKeyStr { 251 struct RSAPublicKeyStr {
250 PLArenaPool * arena; 252 PLArenaPool * arena;
251 SECItem modulus; 253 SECItem modulus;
252 SECItem publicExponent; 254 SECItem publicExponent;
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 int, 415 int,
414 unsigned int , 416 unsigned int ,
415 unsigned int ); 417 unsigned int );
416 typedef SECStatus (*BLapiEncrypt)(void *cx, unsigned char *output, 418 typedef SECStatus (*BLapiEncrypt)(void *cx, unsigned char *output,
417 unsigned int *outputLen, 419 unsigned int *outputLen,
418 unsigned int maxOutputLen, 420 unsigned int maxOutputLen,
419 const unsigned char *input, 421 const unsigned char *input,
420 unsigned int inputLen); 422 unsigned int inputLen);
421 423
422 #endif /* _BLAPIT_H_ */ 424 #endif /* _BLAPIT_H_ */
OLDNEW
« no previous file with comments | « nss/lib/freebl/blapi.h ('k') | nss/lib/freebl/chacha20/chacha20.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698