security/nss/lib/softoken/softoknt.h

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 /*
michael@0 2 * softoknt.h - public data structures for the software token library
michael@0 3 *
michael@0 4 * This Source Code Form is subject to the terms of the Mozilla Public
michael@0 5 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 7
michael@0 8 #ifndef _SOFTOKNT_H_
michael@0 9 #define _SOFTOKNT_H_
michael@0 10
michael@0 11 #define NSS_SOFTOKEN_DEFAULT_CHUNKSIZE 2048
michael@0 12
michael@0 13 /*
michael@0 14 * FIPS 140-2 auditing
michael@0 15 */
michael@0 16 typedef enum {
michael@0 17 NSS_AUDIT_ERROR = 3, /* errors */
michael@0 18 NSS_AUDIT_WARNING = 2, /* warning messages */
michael@0 19 NSS_AUDIT_INFO = 1 /* informational messages */
michael@0 20 } NSSAuditSeverity;
michael@0 21
michael@0 22 typedef enum {
michael@0 23 NSS_AUDIT_ACCESS_KEY = 0,
michael@0 24 NSS_AUDIT_CHANGE_KEY,
michael@0 25 NSS_AUDIT_COPY_KEY,
michael@0 26 NSS_AUDIT_CRYPT,
michael@0 27 NSS_AUDIT_DERIVE_KEY,
michael@0 28 NSS_AUDIT_DESTROY_KEY,
michael@0 29 NSS_AUDIT_DIGEST_KEY,
michael@0 30 NSS_AUDIT_FIPS_STATE,
michael@0 31 NSS_AUDIT_GENERATE_KEY,
michael@0 32 NSS_AUDIT_INIT_PIN,
michael@0 33 NSS_AUDIT_INIT_TOKEN,
michael@0 34 NSS_AUDIT_LOAD_KEY,
michael@0 35 NSS_AUDIT_LOGIN,
michael@0 36 NSS_AUDIT_LOGOUT,
michael@0 37 NSS_AUDIT_SELF_TEST,
michael@0 38 NSS_AUDIT_SET_PIN,
michael@0 39 NSS_AUDIT_UNWRAP_KEY,
michael@0 40 NSS_AUDIT_WRAP_KEY
michael@0 41 } NSSAuditType;
michael@0 42
michael@0 43 #endif /* _SOFTOKNT_H_ */

mercurial