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 _UTILMODT_H_ michael@0: #define _UTILMODT_H_ 1 michael@0: michael@0: /* michael@0: * these are SECMOD flags that would normally be in secmodt.h, but are needed michael@0: * for the parser in util. Fort this reason we preserve the SECMOD names. michael@0: */ michael@0: #define SECMOD_RSA_FLAG 0x00000001L michael@0: #define SECMOD_DSA_FLAG 0x00000002L michael@0: #define SECMOD_RC2_FLAG 0x00000004L michael@0: #define SECMOD_RC4_FLAG 0x00000008L michael@0: #define SECMOD_DES_FLAG 0x00000010L michael@0: #define SECMOD_DH_FLAG 0x00000020L michael@0: #define SECMOD_FORTEZZA_FLAG 0x00000040L michael@0: #define SECMOD_RC5_FLAG 0x00000080L michael@0: #define SECMOD_SHA1_FLAG 0x00000100L michael@0: #define SECMOD_MD5_FLAG 0x00000200L michael@0: #define SECMOD_MD2_FLAG 0x00000400L michael@0: #define SECMOD_SSL_FLAG 0x00000800L michael@0: #define SECMOD_TLS_FLAG 0x00001000L michael@0: #define SECMOD_AES_FLAG 0x00002000L michael@0: #define SECMOD_SHA256_FLAG 0x00004000L /* also for SHA224 */ michael@0: #define SECMOD_SHA512_FLAG 0x00008000L /* also for SHA384 */ michael@0: #define SECMOD_CAMELLIA_FLAG 0x00010000L /* = PUBLIC_MECH_CAMELLIA_FLAG */ michael@0: #define SECMOD_SEED_FLAG 0x00020000L michael@0: #define SECMOD_ECC_FLAG 0x00040000L michael@0: /* reserved bit for future, do not use */ michael@0: #define SECMOD_RESERVED_FLAG 0X08000000L michael@0: #define SECMOD_FRIENDLY_FLAG 0x10000000L michael@0: #define SECMOD_RANDOM_FLAG 0x80000000L michael@0: michael@0: #define PK11_OWN_PW_DEFAULTS 0x20000000L michael@0: #define PK11_DISABLE_FLAG 0x40000000L michael@0: michael@0: /* need to make SECMOD and PK11 prefixes consistent. */ michael@0: #define SECMOD_OWN_PW_DEFAULTS PK11_OWN_PW_DEFAULTS michael@0: #define SECMOD_DISABLE_FLAG PK11_DISABLE_FLAG michael@0: michael@0: #endif /* _UTILMODT_H_ */