| OLD | NEW |
| 1 /* | 1 /* |
| 2 * softoknt.h - public data structures for the software token library | 2 * softoknt.h - public data structures for the software token 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 /* $Id: softoknt.h,v 1.7 2012/04/25 14:50:10 gerv%gerv.net Exp $ */ | 7 /* $Id: softoknt.h,v 1.8 2013/02/05 02:19:52 ryan.sleevi%gmail.com Exp $ */ |
| 8 | 8 |
| 9 #ifndef _SOFTOKNT_H_ | 9 #ifndef _SOFTOKNT_H_ |
| 10 #define _SOFTOKNT_H_ | 10 #define _SOFTOKNT_H_ |
| 11 | 11 |
| 12 /* | 12 /* |
| 13 * RSA block types | 13 * RSA block types |
| 14 * | 14 * |
| 15 * The actual values are important -- they are fixed, *not* arbitrary. | 15 * The actual values are important -- they are fixed, *not* arbitrary. |
| 16 * The explicit value assignments are not needed (because C would give | 16 * The explicit value assignments are not needed (because C would give |
| 17 * us those same values anyway) but are included as a reminder... | 17 * us those same values anyway) but are included as a reminder... |
| 18 */ | 18 */ |
| 19 typedef enum { | 19 typedef enum { |
| 20 RSA_BlockPrivate0 = 0, /* unused, really */ | 20 RSA_BlockPrivate0 = 0, /* unused, really */ |
| 21 RSA_BlockPrivate = 1, /* pad for a private-key operation */ | 21 RSA_BlockPrivate = 1, /* pad for a private-key operation */ |
| 22 RSA_BlockPublic = 2, /* pad for a public-key operation */ | 22 RSA_BlockPublic = 2, /* pad for a public-key operation */ |
| 23 RSA_BlockOAEP = 3, /* use OAEP padding */ | |
| 24 /* XXX is this only for a public-key | |
| 25 operation? If so, add "Public" */ | |
| 26 RSA_BlockRaw = 4, /* simply justify the block appropriately */ | 23 RSA_BlockRaw = 4, /* simply justify the block appropriately */ |
| 27 RSA_BlockTotal | 24 RSA_BlockTotal |
| 28 } RSA_BlockType; | 25 } RSA_BlockType; |
| 29 | 26 |
| 30 #define NSS_SOFTOKEN_DEFAULT_CHUNKSIZE 2048 | 27 #define NSS_SOFTOKEN_DEFAULT_CHUNKSIZE 2048 |
| 31 | 28 |
| 32 /* | 29 /* |
| 33 * FIPS 140-2 auditing | 30 * FIPS 140-2 auditing |
| 34 */ | 31 */ |
| 35 typedef enum { | 32 typedef enum { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 53 NSS_AUDIT_LOAD_KEY, | 50 NSS_AUDIT_LOAD_KEY, |
| 54 NSS_AUDIT_LOGIN, | 51 NSS_AUDIT_LOGIN, |
| 55 NSS_AUDIT_LOGOUT, | 52 NSS_AUDIT_LOGOUT, |
| 56 NSS_AUDIT_SELF_TEST, | 53 NSS_AUDIT_SELF_TEST, |
| 57 NSS_AUDIT_SET_PIN, | 54 NSS_AUDIT_SET_PIN, |
| 58 NSS_AUDIT_UNWRAP_KEY, | 55 NSS_AUDIT_UNWRAP_KEY, |
| 59 NSS_AUDIT_WRAP_KEY | 56 NSS_AUDIT_WRAP_KEY |
| 60 } NSSAuditType; | 57 } NSSAuditType; |
| 61 | 58 |
| 62 #endif /* _SOFTOKNT_H_ */ | 59 #endif /* _SOFTOKNT_H_ */ |
| OLD | NEW |