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

Side by Side Diff: nss/mozilla/security/nss/lib/freebl/blapii.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 * blapii.h - private data structures and prototypes for the crypto library 2 * blapii.h - private data structures and prototypes 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 22 matching lines...) Expand all
33 * the provisions above, a recipient may use your version of this file under 33 * the provisions above, a recipient may use your version of this file under
34 * the terms of any one of the MPL, the GPL or the LGPL. 34 * the terms of any one of the MPL, the GPL or the LGPL.
35 * 35 *
36 * ***** END LICENSE BLOCK ***** */ 36 * ***** END LICENSE BLOCK ***** */
37 37
38 #ifndef _BLAPII_H_ 38 #ifndef _BLAPII_H_
39 #define _BLAPII_H_ 39 #define _BLAPII_H_
40 40
41 #include "blapit.h" 41 #include "blapit.h"
42 42
43 /* max block size of supported block ciphers */
44 #define MAX_BLOCK_SIZE 16
45
46 typedef SECStatus (*freeblCipherFunc)(void *cx, unsigned char *output,
47 unsigned int *outputLen, unsigned int maxOutputLen,
48 const unsigned char *input, unsigned int inputLen,
49 unsigned int blocksize);
50 typedef void (*freeblDestroyFunc)(void *cx, PRBool freeit);
51
43 SEC_BEGIN_PROTOS 52 SEC_BEGIN_PROTOS
44 53
45 #if defined(XP_UNIX) && !defined(NO_FORK_CHECK) 54 #if defined(XP_UNIX) && !defined(NO_FORK_CHECK)
46 55
47 extern PRBool bl_parentForkedAfterC_Initialize; 56 extern PRBool bl_parentForkedAfterC_Initialize;
48 57
49 #define SKIP_AFTER_FORK(x) if (!bl_parentForkedAfterC_Initialize) x 58 #define SKIP_AFTER_FORK(x) if (!bl_parentForkedAfterC_Initialize) x
50 59
51 #else 60 #else
52 61
53 #define SKIP_AFTER_FORK(x) x 62 #define SKIP_AFTER_FORK(x) x
54 63
55 #endif 64 #endif
56 65
57 SEC_END_PROTOS 66 SEC_END_PROTOS
58 67
59 #endif /* _BLAPII_H_ */ 68 #endif /* _BLAPII_H_ */
60 69
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698