4 * This is free software; see Copyright file in the source
5 * distribution for preciese wording.
7 * Copyright (C) 2002-2003 Aleksey Sanin <aleksey@aleksey.com>
9 #ifndef __XMLSEC_OPENSSL_SYMBOLS_H__
10 #define __XMLSEC_OPENSSL_SYMBOLS_H__
12 #if !defined(IN_XMLSEC) && defined(XMLSEC_CRYPTO_DYNAMIC_LOADING)
13 #error To disable dynamic loading of xmlsec-crypto libraries undefine XMLSEC_CRYPTO_DYNAMIC_LOADING
14 #endif /* !defined(IN_XMLSEC) && defined(XMLSEC_CRYPTO_DYNAMIC_LOADING) */
18 #endif /* __cplusplus */
21 * Defines for writing simple code
23 #ifdef XMLSEC_CRYPTO_OPENSSL
26 * Crypto Init/shutdown
28 #define xmlSecCryptoInit xmlSecOpenSSLInit
29 #define xmlSecCryptoShutdown xmlSecOpenSSLShutdown
31 #define xmlSecCryptoKeysMngrInit xmlSecOpenSSLKeysMngrInit
36 #define xmlSecKeyDataAesId xmlSecOpenSSLKeyDataAesId
37 #define xmlSecKeyDataDesId xmlSecOpenSSLKeyDataDesId
38 #define xmlSecKeyDataDsaId xmlSecOpenSSLKeyDataDsaId
39 #define xmlSecKeyDataHmacId xmlSecOpenSSLKeyDataHmacId
40 #define xmlSecKeyDataRsaId xmlSecOpenSSLKeyDataRsaId
41 #define xmlSecKeyDataX509Id xmlSecOpenSSLKeyDataX509Id
42 #define xmlSecKeyDataRawX509CertId xmlSecOpenSSLKeyDataRawX509CertId
47 #define xmlSecX509StoreId xmlSecOpenSSLX509StoreId
50 * Crypto transforms ids
52 #define xmlSecTransformAes128CbcId xmlSecOpenSSLTransformAes128CbcId
53 #define xmlSecTransformAes192CbcId xmlSecOpenSSLTransformAes192CbcId
54 #define xmlSecTransformAes256CbcId xmlSecOpenSSLTransformAes256CbcId
55 #define xmlSecTransformKWAes128Id xmlSecOpenSSLTransformKWAes128Id
56 #define xmlSecTransformKWAes192Id xmlSecOpenSSLTransformKWAes192Id
57 #define xmlSecTransformKWAes256Id xmlSecOpenSSLTransformKWAes256Id
58 #define xmlSecTransformDes3CbcId xmlSecOpenSSLTransformDes3CbcId
59 #define xmlSecTransformKWDes3Id xmlSecOpenSSLTransformKWDes3Id
60 #define xmlSecTransformDsaSha1Id xmlSecOpenSSLTransformDsaSha1Id
61 #define xmlSecTransformHmacMd5Id xmlSecOpenSSLTransformHmacMd5Id
62 #define xmlSecTransformHmacRipemd160Id xmlSecOpenSSLTransformHmacRipemd160Id
63 #define xmlSecTransformHmacSha1Id xmlSecOpenSSLTransformHmacSha1Id
64 #define xmlSecTransformHmacSha224Id xmlSecOpenSSLTransformHmacSha224Id
65 #define xmlSecTransformHmacSha256Id xmlSecOpenSSLTransformHmacSha256Id
66 #define xmlSecTransformHmacSha384Id xmlSecOpenSSLTransformHmacSha384Id
67 #define xmlSecTransformHmacSha512Id xmlSecOpenSSLTransformHmacSha512Id
68 #define xmlSecTransformMd5Id xmlSecOpenSSLTransformMd5Id
69 #define xmlSecTransformRipemd160Id xmlSecOpenSSLTransformRipemd160Id
70 #define xmlSecTransformRsaMd5Id xmlSecOpenSSLTransformRsaMd5Id
71 #define xmlSecTransformRsaRipemd160Id xmlSecOpenSSLTransformRsaRipemd160Id
72 #define xmlSecTransformRsaSha1Id xmlSecOpenSSLTransformRsaSha1Id
73 #define xmlSecTransformRsaSha224Id xmlSecOpenSSLTransformRsaSha224Id
74 #define xmlSecTransformRsaSha256Id xmlSecOpenSSLTransformRsaSha256Id
75 #define xmlSecTransformRsaSha384Id xmlSecOpenSSLTransformRsaSha384Id
76 #define xmlSecTransformRsaSha512Id xmlSecOpenSSLTransformRsaSha512Id
77 #define xmlSecTransformRsaPkcs1Id xmlSecOpenSSLTransformRsaPkcs1Id
78 #define xmlSecTransformRsaOaepId xmlSecOpenSSLTransformRsaOaepId
79 #define xmlSecTransformSha1Id xmlSecOpenSSLTransformSha1Id
80 #define xmlSecTransformSha224Id xmlSecOpenSSLTransformSha224Id
81 #define xmlSecTransformSha256Id xmlSecOpenSSLTransformSha256Id
82 #define xmlSecTransformSha384Id xmlSecOpenSSLTransformSha384Id
83 #define xmlSecTransformSha512Id xmlSecOpenSSLTransformSha512Id
86 * High level routines form xmlsec command line utility
88 #define xmlSecCryptoAppInit xmlSecOpenSSLAppInit
89 #define xmlSecCryptoAppShutdown xmlSecOpenSSLAppShutdown
90 #define xmlSecCryptoAppDefaultKeysMngrInit xmlSecOpenSSLAppDefaultKeysMngrInit
91 #define xmlSecCryptoAppDefaultKeysMngrAdoptKey xmlSecOpenSSLAppDefaultKeysMngrAdoptKey
92 #define xmlSecCryptoAppDefaultKeysMngrLoad xmlSecOpenSSLAppDefaultKeysMngrLoad
93 #define xmlSecCryptoAppDefaultKeysMngrSave xmlSecOpenSSLAppDefaultKeysMngrSave
94 #define xmlSecCryptoAppKeysMngrCertLoad xmlSecOpenSSLAppKeysMngrCertLoad
95 #define xmlSecCryptoAppKeysMngrCertLoadMemory xmlSecOpenSSLAppKeysMngrCertLoadMemory
96 #define xmlSecCryptoAppKeyLoad xmlSecOpenSSLAppKeyLoad
97 #define xmlSecCryptoAppPkcs12Load xmlSecOpenSSLAppPkcs12Load
98 #define xmlSecCryptoAppKeyCertLoad xmlSecOpenSSLAppKeyCertLoad
99 #define xmlSecCryptoAppKeyLoadMemory xmlSecOpenSSLAppKeyLoadMemory
100 #define xmlSecCryptoAppPkcs12LoadMemory xmlSecOpenSSLAppPkcs12LoadMemory
101 #define xmlSecCryptoAppKeyCertLoadMemory xmlSecOpenSSLAppKeyCertLoadMemory
102 #define xmlSecCryptoAppGetDefaultPwdCallback xmlSecOpenSSLAppGetDefaultPwdCallback
105 /* todo: this should go away on next API refresh */
106 #define xmlSecCryptoAppKeysMngrAddCertsPath xmlSecOpenSSLAppKeysMngrAddCertsPath
108 #endif /* XMLSEC_CRYPTO_OPENSSL */
112 #endif /* __cplusplus */
114 #endif /* __XMLSEC_OPENSSL_CRYPTO_H__ */
116 #define __XMLSEC_OPENSSL_CRYPTO_H__