michael@0: /* michael@0: * softoknt.h - public data structures for the software token library michael@0: * michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef _SOFTOKNT_H_ michael@0: #define _SOFTOKNT_H_ michael@0: michael@0: #define NSS_SOFTOKEN_DEFAULT_CHUNKSIZE 2048 michael@0: michael@0: /* michael@0: * FIPS 140-2 auditing michael@0: */ michael@0: typedef enum { michael@0: NSS_AUDIT_ERROR = 3, /* errors */ michael@0: NSS_AUDIT_WARNING = 2, /* warning messages */ michael@0: NSS_AUDIT_INFO = 1 /* informational messages */ michael@0: } NSSAuditSeverity; michael@0: michael@0: typedef enum { michael@0: NSS_AUDIT_ACCESS_KEY = 0, michael@0: NSS_AUDIT_CHANGE_KEY, michael@0: NSS_AUDIT_COPY_KEY, michael@0: NSS_AUDIT_CRYPT, michael@0: NSS_AUDIT_DERIVE_KEY, michael@0: NSS_AUDIT_DESTROY_KEY, michael@0: NSS_AUDIT_DIGEST_KEY, michael@0: NSS_AUDIT_FIPS_STATE, michael@0: NSS_AUDIT_GENERATE_KEY, michael@0: NSS_AUDIT_INIT_PIN, michael@0: NSS_AUDIT_INIT_TOKEN, michael@0: NSS_AUDIT_LOAD_KEY, michael@0: NSS_AUDIT_LOGIN, michael@0: NSS_AUDIT_LOGOUT, michael@0: NSS_AUDIT_SELF_TEST, michael@0: NSS_AUDIT_SET_PIN, michael@0: NSS_AUDIT_UNWRAP_KEY, michael@0: NSS_AUDIT_WRAP_KEY michael@0: } NSSAuditType; michael@0: michael@0: #endif /* _SOFTOKNT_H_ */