Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

DSIGConstants.hpp File Reference

#include <xsec/utils/XSECSafeBuffer.hpp>
#include <xercesc/util/XMLString.hpp>

Include dependency graph for DSIGConstants.hpp:

Go to the source code of this file.

Defines

#define URI_ID_DSIG   "http://www.w3.org/2000/09/xmldsig#"
#define URI_ID_EC   "http://www.w3.org/2001/10/xml-exc-c14n#"
#define URI_ID_XPF   "http://www.w3.org/2002/06/xmldsig-filter2"
#define URI_ID_XENC   "http://www.w3.org/2001/04/xmlenc#"
#define URI_ID_SHA1   "http://www.w3.org/2000/09/xmldsig#sha1"
#define URI_ID_MD5   "http://www.w3.org/2001/04/xmldsig-more#md5"
#define URI_ID_SHA224   "http://www.w3.org/2001/04/xmldsig-more#sha224"
#define URI_ID_SHA256   "http://www.w3.org/2001/04/xmlenc#sha256"
#define URI_ID_SHA384   "http://www.w3.org/2001/04/xmldsig-more#sha384"
#define URI_ID_SHA512   "http://www.w3.org/2001/04/xmlenc#sha512"
#define URI_ID_3DES_CBC   "http://www.w3.org/2001/04/xmlenc#tripledes-cbc"
#define URI_ID_AES128_CBC   "http://www.w3.org/2001/04/xmlenc#aes128-cbc"
#define URI_ID_AES192_CBC   "http://www.w3.org/2001/04/xmlenc#aes192-cbc"
#define URI_ID_AES256_CBC   "http://www.w3.org/2001/04/xmlenc#aes256-cbc"
#define URI_ID_KW_AES128   "http://www.w3.org/2001/04/xmlenc#kw-aes128"
#define URI_ID_KW_AES192   "http://www.w3.org/2001/04/xmlenc#kw-aes192"
#define URI_ID_KW_AES256   "http://www.w3.org/2001/04/xmlenc#kw-aes256"
#define URI_ID_KW_3DES   "http://www.w3.org/2001/04/xmlenc#kw-tripledes"
#define URI_ID_RSA_1_5   "http://www.w3.org/2001/04/xmlenc#rsa-1_5"
#define URI_ID_RSA_OAEP_MGFP1   "http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p"
#define URI_ID_BASE64   "http://www.w3.org/2000/09/xmldsig#base64"
#define URI_ID_XPATH   "http://www.w3.org/TR/1999/REC-xpath-19991116"
#define URI_ID_XSLT   "http://www.w3.org/TR/1999/REC-xslt-19991116"
#define URI_ID_ENVELOPE   "http://www.w3.org/2000/09/xmldsig#enveloped-signature"
#define URI_ID_C14N_NOC   "http://www.w3.org/TR/2001/REC-xml-c14n-20010315"
#define URI_ID_C14N_COM   "http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"
#define URI_ID_EXC_C14N_NOC   "http://www.w3.org/2001/10/xml-exc-c14n#"
#define URI_ID_EXC_C14N_COM   "http://www.w3.org/2001/10/xml-exc-c14n#WithComments"
#define XPATH_EXPR_ENVELOPE   "count(ancestor-or-self::dsig:Signature | \ here()/ancestor::dsig:Signature[1]) > \ count(ancestor-or-self::dsig:Signature)"
#define URI_ID_SIG_BASE   "http://www.w3.org/2000/09/xmldsig#"
#define URI_ID_SIG_BASEMORE   "http://www.w3.org/2001/04/xmldsig-more#"
#define URI_ID_SIG_DSA   "dsa"
#define URI_ID_SIG_HMAC   "hmac"
#define URI_ID_SIG_SHA1   "sha1"
#define URI_ID_SIG_SHA224   "sha224"
#define URI_ID_SIG_SHA256   "sha256"
#define URI_ID_SIG_SHA384   "sha384"
#define URI_ID_SIG_SHA512   "sha512"
#define URI_ID_SIG_RSA   "rsa"
#define URI_ID_SIG_MD5   "md5"
#define URI_ID_DSA_SHA1   "http://www.w3.org/2000/09/xmldsig#dsa-sha1"
#define URI_ID_HMAC_SHA1   "http://www.w3.org/2000/09/xmldsig#hmac-sha1"
#define URI_ID_HMAC_SHA224   "http://www.w3.org/2001/04/xmldsig-more#hmac-sha224"
#define URI_ID_HMAC_SHA256   "http://www.w3.org/2001/04/xmldsig-more#hmac-sha256"
#define URI_ID_HMAC_SHA384   "http://www.w3.org/2001/04/xmldsig-more#hmac-sha384"
#define URI_ID_HMAC_SHA512   "http://www.w3.org/2001/04/xmldsig-more#hmac-sha512"
#define URI_ID_RSA_SHA1   "http://www.w3.org/2000/09/xmldsig#rsa-sha1"
#define URI_ID_RSA_SHA224   "http://www.w3.org/2001/04/xmldsig-more#rsa-sha224"
#define URI_ID_RSA_SHA256   "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"
#define URI_ID_RSA_SHA384   "http://www.w3.org/2001/04/xmldsig-more#rsa-sha384"
#define URI_ID_RSA_SHA512   "http://www.w3.org/2001/04/xmldsig-more#rsa-sha512"
#define URI_ID_RSA_MD5   "http://www.w3.org/2000/09/xmldsig#rsa-md5"
#define URI_ID_XENC_ELEMENT   "http://www.w3.org/2001/04/xmlenc#Element"
#define URI_ID_XENC_CONTENT   "http://www.w3.org/2001/04/xmlenc#Content"
#define URI_ID_XMLNS   "http://www.w3.org/2000/xmlns/"
#define URI_ID_MANIFEST   "http://www.w3.org/2000/09/xmldsig#Manifest"
#define URI_ID_RAWX509   "http://www.w3.org/2000/09/xmldsig#rawX509Certificate"
#define PROV_OPENSSL   "OpenSSL Provider"
#define PROV_WINCAPI   "WinCAPI Provider"

Enumerations

enum  canonicalizationMethod {
  CANON_NONE = 0,
  CANON_C14N_NOC = 1,
  CANON_C14N_COM = 2,
  CANON_C14NE_NOC = 3,
  CANON_C14NE_COM = 4
}
enum  signatureMethod {
  SIGNATURE_NONE = 0,
  SIGNATURE_DSA = 1,
  SIGNATURE_HMAC = 2,
  SIGNATURE_RSA = 3
}
enum  hashMethod {
  HASH_NONE = 0,
  HASH_SHA1 = 1,
  HASH_MD5 = 2,
  HASH_SHA224 = 3,
  HASH_SHA256 = 4,
  HASH_SHA384 = 5,
  HASH_SHA512 = 6
}
enum  transformType {
  TRANSFORM_BASE64,
  TRANSFORM_C14N,
  TRANSFORM_EXC_C14N,
  TRANSFORM_ENVELOPED_SIGNATURE,
  TRANSFORM_XPATH,
  TRANSFORM_XSLT,
  TRANSFORM_XPATH_FILTER
}
enum  xpathFilterType {
  FILTER_UNION = 0,
  FILTER_INTERSECT = 1,
  FILTER_SUBTRACT = 2
}
enum  encryptionMethod {
  ENCRYPT_NONE = 0,
  ENCRYPT_3DES_CBC = 1,
  ENCRYPT_AES128_CBC = 2,
  ENCRYPT_AES192_CBC = 3,
  ENCRYPT_AES256_CBC = 4,
  ENCRYPT_KW_AES128 = 5,
  ENCRYPT_KW_AES192 = 6,
  ENCRYPT_KW_AES256 = 7,
  ENCRYPT_KW_3DES = 8,
  ENCRYPT_RSA_15 = 9,
  ENCRYPT_RSA_OAEP_MGFP1 = 10
}

Functions

 XSEC_USING_XERCES (XMLString)
bool canonicalizationMethod2URI (safeBuffer &uri, canonicalizationMethod cm)
bool signatureHashMethod2URI (safeBuffer &uri, signatureMethod sm, hashMethod hm)
bool hashMethod2URI (safeBuffer &uri, hashMethod hm)
bool encryptionMethod2URI (safeBuffer &uri, encryptionMethod em)
const XMLCh * canonicalizationMethod2UNICODEURI (canonicalizationMethod cm)


Define Documentation

#define PROV_OPENSSL   "OpenSSL Provider"
 

#define PROV_WINCAPI   "WinCAPI Provider"
 

#define URI_ID_3DES_CBC   "http://www.w3.org/2001/04/xmlenc#tripledes-cbc"
 

#define URI_ID_AES128_CBC   "http://www.w3.org/2001/04/xmlenc#aes128-cbc"
 

#define URI_ID_AES192_CBC   "http://www.w3.org/2001/04/xmlenc#aes192-cbc"
 

#define URI_ID_AES256_CBC   "http://www.w3.org/2001/04/xmlenc#aes256-cbc"
 

#define URI_ID_BASE64   "http://www.w3.org/2000/09/xmldsig#base64"
 

#define URI_ID_C14N_COM   "http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"
 

#define URI_ID_C14N_NOC   "http://www.w3.org/TR/2001/REC-xml-c14n-20010315"
 

#define URI_ID_DSA_SHA1   "http://www.w3.org/2000/09/xmldsig#dsa-sha1"
 

#define URI_ID_DSIG   "http://www.w3.org/2000/09/xmldsig#"
 

#define URI_ID_EC   "http://www.w3.org/2001/10/xml-exc-c14n#"
 

#define URI_ID_ENVELOPE   "http://www.w3.org/2000/09/xmldsig#enveloped-signature"
 

#define URI_ID_EXC_C14N_COM   "http://www.w3.org/2001/10/xml-exc-c14n#WithComments"
 

#define URI_ID_EXC_C14N_NOC   "http://www.w3.org/2001/10/xml-exc-c14n#"
 

#define URI_ID_HMAC_SHA1   "http://www.w3.org/2000/09/xmldsig#hmac-sha1"
 

#define URI_ID_HMAC_SHA224   "http://www.w3.org/2001/04/xmldsig-more#hmac-sha224"
 

#define URI_ID_HMAC_SHA256   "http://www.w3.org/2001/04/xmldsig-more#hmac-sha256"
 

#define URI_ID_HMAC_SHA384   "http://www.w3.org/2001/04/xmldsig-more#hmac-sha384"
 

#define URI_ID_HMAC_SHA512   "http://www.w3.org/2001/04/xmldsig-more#hmac-sha512"
 

#define URI_ID_KW_3DES   "http://www.w3.org/2001/04/xmlenc#kw-tripledes"
 

#define URI_ID_KW_AES128   "http://www.w3.org/2001/04/xmlenc#kw-aes128"
 

#define URI_ID_KW_AES192   "http://www.w3.org/2001/04/xmlenc#kw-aes192"
 

#define URI_ID_KW_AES256   "http://www.w3.org/2001/04/xmlenc#kw-aes256"
 

#define URI_ID_MANIFEST   "http://www.w3.org/2000/09/xmldsig#Manifest"
 

#define URI_ID_MD5   "http://www.w3.org/2001/04/xmldsig-more#md5"
 

#define URI_ID_RAWX509   "http://www.w3.org/2000/09/xmldsig#rawX509Certificate"
 

#define URI_ID_RSA_1_5   "http://www.w3.org/2001/04/xmlenc#rsa-1_5"
 

#define URI_ID_RSA_MD5   "http://www.w3.org/2000/09/xmldsig#rsa-md5"
 

#define URI_ID_RSA_OAEP_MGFP1   "http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p"
 

#define URI_ID_RSA_SHA1   "http://www.w3.org/2000/09/xmldsig#rsa-sha1"
 

#define URI_ID_RSA_SHA224   "http://www.w3.org/2001/04/xmldsig-more#rsa-sha224"
 

#define URI_ID_RSA_SHA256   "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"
 

#define URI_ID_RSA_SHA384   "http://www.w3.org/2001/04/xmldsig-more#rsa-sha384"
 

#define URI_ID_RSA_SHA512   "http://www.w3.org/2001/04/xmldsig-more#rsa-sha512"
 

#define URI_ID_SHA1   "http://www.w3.org/2000/09/xmldsig#sha1"
 

#define URI_ID_SHA224   "http://www.w3.org/2001/04/xmldsig-more#sha224"
 

#define URI_ID_SHA256   "http://www.w3.org/2001/04/xmlenc#sha256"
 

#define URI_ID_SHA384   "http://www.w3.org/2001/04/xmldsig-more#sha384"
 

#define URI_ID_SHA512   "http://www.w3.org/2001/04/xmlenc#sha512"
 

#define URI_ID_SIG_BASE   "http://www.w3.org/2000/09/xmldsig#"
 

#define URI_ID_SIG_BASEMORE   "http://www.w3.org/2001/04/xmldsig-more#"
 

#define URI_ID_SIG_DSA   "dsa"
 

#define URI_ID_SIG_HMAC   "hmac"
 

#define URI_ID_SIG_MD5   "md5"
 

#define URI_ID_SIG_RSA   "rsa"
 

#define URI_ID_SIG_SHA1   "sha1"
 

#define URI_ID_SIG_SHA224   "sha224"
 

#define URI_ID_SIG_SHA256   "sha256"
 

#define URI_ID_SIG_SHA384   "sha384"
 

#define URI_ID_SIG_SHA512   "sha512"
 

#define URI_ID_XENC   "http://www.w3.org/2001/04/xmlenc#"
 

#define URI_ID_XENC_CONTENT   "http://www.w3.org/2001/04/xmlenc#Content"
 

#define URI_ID_XENC_ELEMENT   "http://www.w3.org/2001/04/xmlenc#Element"
 

#define URI_ID_XMLNS   "http://www.w3.org/2000/xmlns/"
 

#define URI_ID_XPATH   "http://www.w3.org/TR/1999/REC-xpath-19991116"
 

#define URI_ID_XPF   "http://www.w3.org/2002/06/xmldsig-filter2"
 

#define URI_ID_XSLT   "http://www.w3.org/TR/1999/REC-xslt-19991116"
 

#define XPATH_EXPR_ENVELOPE   "count(ancestor-or-self::dsig:Signature | \ here()/ancestor::dsig:Signature[1]) > \ count(ancestor-or-self::dsig:Signature)"
 


Enumeration Type Documentation

enum canonicalizationMethod
 

Enumeration values:
CANON_NONE 
CANON_C14N_NOC 
CANON_C14N_COM 
CANON_C14NE_NOC 
CANON_C14NE_COM 

enum encryptionMethod
 

Enumeration values:
ENCRYPT_NONE 
ENCRYPT_3DES_CBC 
ENCRYPT_AES128_CBC 
ENCRYPT_AES192_CBC 
ENCRYPT_AES256_CBC 
ENCRYPT_KW_AES128 
ENCRYPT_KW_AES192 
ENCRYPT_KW_AES256 
ENCRYPT_KW_3DES 
ENCRYPT_RSA_15 
ENCRYPT_RSA_OAEP_MGFP1 

enum hashMethod
 

Enumeration values:
HASH_NONE 
HASH_SHA1 
HASH_MD5 
HASH_SHA224 
HASH_SHA256 
HASH_SHA384 
HASH_SHA512 

enum signatureMethod
 

Enumeration values:
SIGNATURE_NONE 
SIGNATURE_DSA 
SIGNATURE_HMAC 
SIGNATURE_RSA 

enum transformType
 

Enumeration values:
TRANSFORM_BASE64 
TRANSFORM_C14N 
TRANSFORM_EXC_C14N 
TRANSFORM_ENVELOPED_SIGNATURE 
TRANSFORM_XPATH 
TRANSFORM_XSLT 
TRANSFORM_XPATH_FILTER 

enum xpathFilterType
 

Enumeration values:
FILTER_UNION 
FILTER_INTERSECT  Results should be added to previous nodeset
FILTER_SUBTRACT  Results should be included if in prev nodeset


Function Documentation

const XMLCh* canonicalizationMethod2UNICODEURI canonicalizationMethod  cm  )  [inline]
 

bool canonicalizationMethod2URI safeBuffer uri,
canonicalizationMethod  cm
[inline]
 

bool encryptionMethod2URI safeBuffer uri,
encryptionMethod  em
[inline]
 

bool hashMethod2URI safeBuffer uri,
hashMethod  hm
[inline]
 

bool signatureHashMethod2URI safeBuffer uri,
signatureMethod  sm,
hashMethod  hm
[inline]
 

XSEC_USING_XERCES XMLString   ) 
 


Generated on Sun Jul 3 17:37:30 2005 for XML-Security-C by  doxygen 1.4.2