You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by sc...@apache.org on 2017/11/13 14:46:51 UTC

svn commit: r1815111 - /santuario/xml-security-cpp/trunk/xsec/enc/XSECCryptoUtils.cpp

Author: scantor
Date: Mon Nov 13 14:46:51 2017
New Revision: 1815111

URL: http://svn.apache.org/viewvc?rev=1815111&view=rev
Log:
Fix regressions due to API changes.

Modified:
    santuario/xml-security-cpp/trunk/xsec/enc/XSECCryptoUtils.cpp

Modified: santuario/xml-security-cpp/trunk/xsec/enc/XSECCryptoUtils.cpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/enc/XSECCryptoUtils.cpp?rev=1815111&r1=1815110&r2=1815111&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/enc/XSECCryptoUtils.cpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/enc/XSECCryptoUtils.cpp Mon Nov 13 14:46:51 2017
@@ -257,7 +257,7 @@ int XSEC_EXPORT CalculateXKMSAuthenticat
 	Janitor<XSECCryptoKeyHMAC> j_k(k);
 	k->setKey(keyVal, 1);
 
-	XSECCryptoHash *h = XSECPlatformUtils::g_cryptoProvider->hashHMACSHA1();
+	XSECCryptoHash *h = XSECPlatformUtils::g_cryptoProvider->hashHMACSHA();
 	Janitor<XSECCryptoHash> j_h(h);
 	h->setKey(k);
 
@@ -279,7 +279,7 @@ int XSEC_EXPORT CalculateXKMSRevocationC
 	Janitor<XSECCryptoKeyHMAC> j_k(k);
 	k->setKey(keyVal, 1);
 
-	XSECCryptoHash *h = XSECPlatformUtils::g_cryptoProvider->hashHMACSHA1();
+	XSECCryptoHash *h = XSECPlatformUtils::g_cryptoProvider->hashHMACSHA();
 	Janitor<XSECCryptoHash> j_h(h);
 
 	h->setKey(k);
@@ -310,7 +310,7 @@ int XSEC_EXPORT CalculateXKMSRevocationC
 	Janitor<XSECCryptoKeyHMAC> j_k(k);
 	k->setKey(keyVal, 1);
 
-	XSECCryptoHash *h = XSECPlatformUtils::g_cryptoProvider->hashHMACSHA1();
+	XSECCryptoHash *h = XSECPlatformUtils::g_cryptoProvider->hashHMACSHA();
 	Janitor<XSECCryptoHash> j_h(h);
 
 	h->setKey(k);
@@ -337,7 +337,7 @@ int XSEC_EXPORT CalculateXKMSKEK(unsigne
 		XSECCryptoKeyHMAC * k = XSECPlatformUtils::g_cryptoProvider->keyHMAC();
 		k->setKey(shaOutput, keyLen);
 
-		XSECCryptoHash *h = XSECPlatformUtils::g_cryptoProvider->hashHMACSHA1();
+		XSECCryptoHash *h = XSECPlatformUtils::g_cryptoProvider->hashHMACSHA();
 		Janitor<XSECCryptoHash> j_h(h);
 
 		h->setKey(k);