PKIFCryptoConstants.h

Go to the documentation of this file.
00001 
00010 #ifndef __PKIFCRYPTOCONSTANTS_H__
00011 #define __PKIFCRYPTOCONSTANTS_H__
00012 
00013 //enums for supported algorithms (some non-supported algs defined but commented as unsupported)
00018 namespace PKIFCRYPTO {
00019 enum HASH_ALG {MD5=16, SHA1=20, SHA224=28, SHA256=32, SHA384=48, SHA512=64};
00020 
00021 #define MAXHASH 64
00022 #define MAXBLOCK 256
00025 enum SYMKEY_ALG {TDES, DES, AES, AES128, AES192, AES256, AES128Wrap, AES192Wrap, AES256Wrap, /*UNSUPPORTED->*/ CAST, RC4, RC2, SKIPJACK};
00027 enum SYMKEY_MODE {ECB,CBC,CTR,/*UNSUPPORTED->*/CFB8, CFB64, OFB8, OFB64};
00029 enum ASYMKEY_ALG {RSA, DSS, ECC};
00031 enum EC_CURVE {NIST_P256, NIST_P384, NIST_P521};
00033 enum PADDING {NOPADDING,PKCS5};
00035 enum KeyUsage 
00036 {
00037     DigitalSignature=1,
00038     NonRepudiation=2,
00039     KeyEncipherment=4,
00040     DataEncipherment=8,
00041     KeyAgreement=16,
00042     KeyCertSign=32,
00043     CRLSign=64,
00044     EncipherOnly=128,
00045     DecipherOnly=256
00046 };
00047 
00048 //enum defining types of keys that may be declared as defaults
00049 //SIGNATURE must always be first andset to zero and NUMDEFTYPES must always be last
00051 enum DefaultKeyType { SIGNATURE=0, DECRYPTION, NUMDEFTYPES };
00052 };
00053 //using namespace PKIFCRYPTO;
00054 #endif
00055 

Generated on Mon Nov 15 11:15:54 2010 for PublicKeyInfrastructureFramework(PKIF) by  doxygen 1.5.6