summaryrefslogtreecommitdiff
path: root/include/xmlsec/mscng/symbols.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/xmlsec/mscng/symbols.h')
-rw-r--r--include/xmlsec/mscng/symbols.h125
1 files changed, 125 insertions, 0 deletions
diff --git a/include/xmlsec/mscng/symbols.h b/include/xmlsec/mscng/symbols.h
new file mode 100644
index 00000000..07fc0ef1
--- /dev/null
+++ b/include/xmlsec/mscng/symbols.h
@@ -0,0 +1,125 @@
+/*
+ * XML Security Library (http://www.aleksey.com/xmlsec).
+ *
+ * This is free software; see Copyright file in the source
+ * distribution for preciese wording.
+ *
+ * Copyright (C) 2018 Miklos Vajna. All Rights Reserved.
+ */
+#ifndef __XMLSEC_MSCNG_SYMBOLS_H__
+#define __XMLSEC_MSCNG_SYMBOLS_H__
+
+#if !defined(IN_XMLSEC) && defined(XMLSEC_CRYPTO_DYNAMIC_LOADING)
+#error To disable dynamic loading of xmlsec-crypto libraries undefine XMLSEC_CRYPTO_DYNAMIC_LOADING
+#endif /* !defined(IN_XMLSEC) && defined(XMLSEC_CRYPTO_DYNAMIC_LOADING) */
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+#ifdef XMLSEC_CRYPTO_MSCNG
+
+/********************************************************************
+ *
+ * Crypto Init/shutdown
+ *
+ ********************************************************************/
+#define xmlSecCryptoInit xmlSecMSCngInit
+#define xmlSecCryptoShutdown xmlSecMSCngShutdown
+
+#define xmlSecCryptoKeysMngrInit xmlSecMSCngKeysMngrInit
+
+/********************************************************************
+ *
+ * Key data ids
+ *
+ ********************************************************************/
+#define xmlSecKeyDataAesId xmlSecMSCngKeyDataAesId
+#define xmlSecKeyDataDesId xmlSecMSCngKeyDataDesId
+#define xmlSecKeyDataDsaId xmlSecMSCngKeyDataDsaId
+#define xmlSecKeyDataEcdsaId xmlSecMSCngKeyDataEcdsaId
+#define xmlSecKeyDataHmacId xmlSecMSCngKeyDataHmacId
+#define xmlSecKeyDataRsaId xmlSecMSCngKeyDataRsaId
+#define xmlSecKeyDataX509Id xmlSecMSCngKeyDataX509Id
+#define xmlSecKeyDataRawX509CertId xmlSecMSCngKeyDataRawX509CertId
+
+/********************************************************************
+ *
+ * Key data store ids
+ *
+ ********************************************************************/
+#define xmlSecX509StoreId xmlSecMSCngX509StoreId
+
+/********************************************************************
+ *
+ * Crypto transforms ids
+ *
+ ********************************************************************/
+#define xmlSecTransformAes128CbcId xmlSecMSCngTransformAes128CbcId
+#define xmlSecTransformAes192CbcId xmlSecMSCngTransformAes192CbcId
+#define xmlSecTransformAes256CbcId xmlSecMSCngTransformAes256CbcId
+#define xmlSecTransformAes128GcmId xmlSecMSCngTransformAes128GcmId
+#define xmlSecTransformAes192GcmId xmlSecMSCngTransformAes192GcmId
+#define xmlSecTransformAes256GcmId xmlSecMSCngTransformAes256GcmId
+#define xmlSecTransformKWAes128Id xmlSecMSCngTransformKWAes128Id
+#define xmlSecTransformKWAes192Id xmlSecMSCngTransformKWAes192Id
+#define xmlSecTransformKWAes256Id xmlSecMSCngTransformKWAes256Id
+#define xmlSecTransformDes3CbcId xmlSecMSCngTransformDes3CbcId
+#define xmlSecTransformKWDes3Id xmlSecMSCngTransformKWDes3Id
+#define xmlSecTransformDsaSha1Id xmlSecMSCngTransformDsaSha1Id
+#define xmlSecTransformDsaSha256Id xmlSecMSCngTransformDsaSha256Id
+#define xmlSecTransformEcdsaSha1Id xmlSecMSCngTransformEcdsaSha1Id
+#define xmlSecTransformEcdsaSha224Id xmlSecMSCngTransformEcdsaSha224Id
+#define xmlSecTransformEcdsaSha256Id xmlSecMSCngTransformEcdsaSha256Id
+#define xmlSecTransformEcdsaSha384Id xmlSecMSCngTransformEcdsaSha384Id
+#define xmlSecTransformEcdsaSha512Id xmlSecMSCngTransformEcdsaSha512Id
+#define xmlSecTransformHmacMd5Id xmlSecMSCngTransformHmacMd5Id
+#define xmlSecTransformHmacRipemd160Id xmlSecMSCngTransformHmacRipemd160Id
+#define xmlSecTransformHmacSha1Id xmlSecMSCngTransformHmacSha1Id
+#define xmlSecTransformHmacSha224Id xmlSecMSCngTransformHmacSha224Id
+#define xmlSecTransformHmacSha256Id xmlSecMSCngTransformHmacSha256Id
+#define xmlSecTransformHmacSha384Id xmlSecMSCngTransformHmacSha384Id
+#define xmlSecTransformHmacSha512Id xmlSecMSCngTransformHmacSha512Id
+#define xmlSecTransformMd5Id xmlSecMSCngTransformMd5Id
+#define xmlSecTransformRipemd160Id xmlSecMSCngTransformRipemd160Id
+#define xmlSecTransformRsaSha1Id xmlSecMSCngTransformRsaSha1Id
+#define xmlSecTransformRsaSha224Id xmlSecMSCngTransformRsaSha224Id
+#define xmlSecTransformRsaSha256Id xmlSecMSCngTransformRsaSha256Id
+#define xmlSecTransformRsaSha384Id xmlSecMSCngTransformRsaSha384Id
+#define xmlSecTransformRsaSha512Id xmlSecMSCngTransformRsaSha512Id
+#define xmlSecTransformRsaPkcs1Id xmlSecMSCngTransformRsaPkcs1Id
+#define xmlSecTransformRsaOaepId xmlSecMSCngTransformRsaOaepId
+#define xmlSecTransformSha1Id xmlSecMSCngTransformSha1Id
+#define xmlSecTransformSha224Id xmlSecMSCngTransformSha224Id
+#define xmlSecTransformSha256Id xmlSecMSCngTransformSha256Id
+#define xmlSecTransformSha384Id xmlSecMSCngTransformSha384Id
+#define xmlSecTransformSha512Id xmlSecMSCngTransformSha512Id
+
+/********************************************************************
+ *
+ * High level routines form xmlsec command line utility
+ *
+ ********************************************************************/
+#define xmlSecCryptoAppInit xmlSecMSCngAppInit
+#define xmlSecCryptoAppShutdown xmlSecMSCngAppShutdown
+#define xmlSecCryptoAppDefaultKeysMngrInit xmlSecMSCngAppDefaultKeysMngrInit
+#define xmlSecCryptoAppDefaultKeysMngrAdoptKey xmlSecMSCngAppDefaultKeysMngrAdoptKey
+#define xmlSecCryptoAppDefaultKeysMngrLoad xmlSecMSCngAppDefaultKeysMngrLoad
+#define xmlSecCryptoAppDefaultKeysMngrSave xmlSecMSCngAppDefaultKeysMngrSave
+#define xmlSecCryptoAppKeysMngrCertLoad xmlSecMSCngAppKeysMngrCertLoad
+#define xmlSecCryptoAppKeysMngrCertLoadMemory xmlSecMSCngAppKeysMngrCertLoadMemory
+#define xmlSecCryptoAppKeyLoad xmlSecMSCngAppKeyLoad
+#define xmlSecCryptoAppPkcs12Load xmlSecMSCngAppPkcs12Load
+#define xmlSecCryptoAppKeyCertLoad xmlSecMSCngAppKeyCertLoad
+#define xmlSecCryptoAppKeyLoadMemory xmlSecMSCngAppKeyLoadMemory
+#define xmlSecCryptoAppPkcs12LoadMemory xmlSecMSCngAppPkcs12LoadMemory
+#define xmlSecCryptoAppKeyCertLoadMemory xmlSecMSCngAppKeyCertLoadMemory
+#define xmlSecCryptoAppGetDefaultPwdCallback xmlSecMSCngAppGetDefaultPwdCallback
+
+#endif /* XMLSEC_CRYPTO_MSCNG */
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* __XMLSEC_MSCNG_CRYPTO_H__ */