OLD | NEW |
1 /* | 1 /* |
2 * crypto.h - public data structures and prototypes for the crypto library | 2 * crypto.h - public 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 28 matching lines...) Expand all Loading... |
39 * ***** END LICENSE BLOCK ***** */ | 39 * ***** END LICENSE BLOCK ***** */ |
40 /* $Id: blapi.h,v 1.33 2009/03/29 03:45:32 wtc%google.com Exp $ */ | 40 /* $Id: blapi.h,v 1.33 2009/03/29 03:45:32 wtc%google.com Exp $ */ |
41 | 41 |
42 #ifndef _BLAPI_H_ | 42 #ifndef _BLAPI_H_ |
43 #define _BLAPI_H_ | 43 #define _BLAPI_H_ |
44 | 44 |
45 #include "blapit.h" | 45 #include "blapit.h" |
46 #include "hasht.h" | 46 #include "hasht.h" |
47 #include "alghmac.h" | 47 #include "alghmac.h" |
48 | 48 |
| 49 #ifndef AES_256_KEY_LENGTH |
| 50 #define AES_256_KEY_LENGTH 32 /* bytes */ |
| 51 #endif |
| 52 |
49 SEC_BEGIN_PROTOS | 53 SEC_BEGIN_PROTOS |
50 | 54 |
51 /* | 55 /* |
52 ** RSA encryption/decryption. When encrypting/decrypting the output | 56 ** RSA encryption/decryption. When encrypting/decrypting the output |
53 ** buffer must be at least the size of the public key modulus. | 57 ** buffer must be at least the size of the public key modulus. |
54 */ | 58 */ |
55 | 59 |
56 extern SECStatus BL_Init(void); | 60 extern SECStatus BL_Init(void); |
57 | 61 |
58 /* | 62 /* |
(...skipping 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1200 PRBool BLAPI_VerifySelf(const char *name); | 1204 PRBool BLAPI_VerifySelf(const char *name); |
1201 | 1205 |
1202 /*********************************************************************/ | 1206 /*********************************************************************/ |
1203 extern const SECHashObject * HASH_GetRawHashObject(HASH_HashType hashType); | 1207 extern const SECHashObject * HASH_GetRawHashObject(HASH_HashType hashType); |
1204 | 1208 |
1205 extern void BL_SetForkState(PRBool forked); | 1209 extern void BL_SetForkState(PRBool forked); |
1206 | 1210 |
1207 SEC_END_PROTOS | 1211 SEC_END_PROTOS |
1208 | 1212 |
1209 #endif /* _BLAPI_H_ */ | 1213 #endif /* _BLAPI_H_ */ |
OLD | NEW |