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

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

Issue 10919163: Add GCM, CTR, and CTS modes to AES. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/
Patch Set: Fix comments as rsleevi suggested, fix a 32-bit bug and miscellaneous issues Created 8 years, 3 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
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 * ***** BEGIN LICENSE BLOCK ***** 4 * ***** BEGIN LICENSE BLOCK *****
5 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 5 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
6 * 6 *
7 * The contents of this file are subject to the Mozilla Public License Version 7 * The contents of this file are subject to the Mozilla Public License Version
8 * 1.1 (the "License"); you may not use this file except in compliance with 8 * 1.1 (the "License"); you may not use this file except in compliance with
9 * the License. You may obtain a copy of the License at 9 * the License. You may obtain a copy of the License at
10 * http://www.mozilla.org/MPL/ 10 * http://www.mozilla.org/MPL/
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 #define NSS_DES 0 61 #define NSS_DES 0
62 #define NSS_DES_CBC 1 62 #define NSS_DES_CBC 1
63 #define NSS_DES_EDE3 2 63 #define NSS_DES_EDE3 2
64 #define NSS_DES_EDE3_CBC 3 64 #define NSS_DES_EDE3_CBC 3
65 65
66 #define DES_KEY_LENGTH 8 /* Bytes */ 66 #define DES_KEY_LENGTH 8 /* Bytes */
67 67
68 /* AES operation modes */ 68 /* AES operation modes */
69 #define NSS_AES 0 69 #define NSS_AES 0
70 #define NSS_AES_CBC 1 70 #define NSS_AES_CBC 1
71 #define NSS_AES_CTS 2
72 #define NSS_AES_CTR 3
73 #define NSS_AES_GCM 4
71 74
72 /* Camellia operation modes */ 75 /* Camellia operation modes */
73 #define NSS_CAMELLIA 0 76 #define NSS_CAMELLIA 0
74 #define NSS_CAMELLIA_CBC 1 77 #define NSS_CAMELLIA_CBC 1
75 78
76 /* SEED operation modes */ 79 /* SEED operation modes */
77 #define NSS_SEED 0 80 #define NSS_SEED 0
78 #define NSS_SEED_CBC 1 81 #define NSS_SEED_CBC 1
79 82
80 #define DSA_SIGNATURE_LEN 40 /* Bytes */ 83 #define DSA_SIGNATURE_LEN 40 /* Bytes */
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 int, 397 int,
395 unsigned int , 398 unsigned int ,
396 unsigned int ); 399 unsigned int );
397 typedef SECStatus (*BLapiEncrypt)(void *cx, unsigned char *output, 400 typedef SECStatus (*BLapiEncrypt)(void *cx, unsigned char *output,
398 unsigned int *outputLen, 401 unsigned int *outputLen,
399 unsigned int maxOutputLen, 402 unsigned int maxOutputLen,
400 const unsigned char *input, 403 const unsigned char *input,
401 unsigned int inputLen); 404 unsigned int inputLen);
402 405
403 #endif /* _BLAPIT_H_ */ 406 #endif /* _BLAPIT_H_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698