OLD | NEW |
---|---|
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 Loading... | |
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 #define MAX_BLOCK_SIZE 16 | |
Ryan Sleevi
2012/09/11 19:34:30
nit: It seems useful to add a comment here explain
| |
44 | |
45 typedef SECStatus (*freeblCipherFunc)(void *cx, unsigned char *output, | |
Ryan Sleevi
2012/09/11 19:34:30
I think it would be helpful if you could document
wtc
2012/09/14 01:16:42
I looked into this. I found that freeblDestroyFunc
| |
46 unsigned int *outputLen, unsigned int maxOutputLen, | |
47 const unsigned char *input, unsigned int inputLen, | |
48 unsigned int blocksize); | |
49 typedef SECStatus (*freeblDestroyFunc)(void *cx, PRBool freeit); | |
50 | |
43 SEC_BEGIN_PROTOS | 51 SEC_BEGIN_PROTOS |
44 | 52 |
45 #if defined(XP_UNIX) && !defined(NO_FORK_CHECK) | 53 #if defined(XP_UNIX) && !defined(NO_FORK_CHECK) |
46 | 54 |
47 extern PRBool bl_parentForkedAfterC_Initialize; | 55 extern PRBool bl_parentForkedAfterC_Initialize; |
48 | 56 |
49 #define SKIP_AFTER_FORK(x) if (!bl_parentForkedAfterC_Initialize) x | 57 #define SKIP_AFTER_FORK(x) if (!bl_parentForkedAfterC_Initialize) x |
50 | 58 |
51 #else | 59 #else |
52 | 60 |
53 #define SKIP_AFTER_FORK(x) x | 61 #define SKIP_AFTER_FORK(x) x |
54 | 62 |
55 #endif | 63 #endif |
56 | 64 |
Ryan Sleevi
2012/09/11 19:34:30
nit: unnecessary newline?
| |
65 | |
57 SEC_END_PROTOS | 66 SEC_END_PROTOS |
58 | 67 |
59 #endif /* _BLAPII_H_ */ | 68 #endif /* _BLAPII_H_ */ |
60 | 69 |
OLD | NEW |