2 * softoknt.h - public data structures for the software token library
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
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
14 * The actual values are important -- they are fixed, *not* arbitrary.
15 * The explicit value assignments are not needed (because C would give
16 * us those same values anyway) but are included as a reminder...
19 RSA_BlockPrivate0 = 0, /* unused, really */
20 RSA_BlockPrivate = 1, /* pad for a private-key operation */
21 RSA_BlockPublic = 2, /* pad for a public-key operation */
22 RSA_BlockRaw = 4, /* simply justify the block appropriately */
26 #define NSS_SOFTOKEN_DEFAULT_CHUNKSIZE 2048
32 NSS_AUDIT_ERROR = 3, /* errors */
33 NSS_AUDIT_WARNING = 2, /* warning messages */
34 NSS_AUDIT_INFO = 1 /* informational messages */
38 NSS_AUDIT_ACCESS_KEY = 0,
43 NSS_AUDIT_DESTROY_KEY,
46 NSS_AUDIT_GENERATE_KEY,
58 #endif /* _SOFTOKNT_H_ */