aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/prov/pkcs11/p11_mechanism.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2019-12-06 11:05:40 -0500
committerJack Lloyd <[email protected]>2019-12-06 11:11:56 -0500
commit125515c43410a902adca5a1b6a8aab4f424dcce1 (patch)
tree26b87327ebcfc7865619fdc45e38340378766bee /src/lib/prov/pkcs11/p11_mechanism.cpp
parentbbc71ebaa1573290f38273ca80b563d272c0917c (diff)
Fix MSVC warnings in PKCS11
Diffstat (limited to 'src/lib/prov/pkcs11/p11_mechanism.cpp')
-rw-r--r--src/lib/prov/pkcs11/p11_mechanism.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/prov/pkcs11/p11_mechanism.cpp b/src/lib/prov/pkcs11/p11_mechanism.cpp
index 08249cf22..4d5778bd8 100644
--- a/src/lib/prov/pkcs11/p11_mechanism.cpp
+++ b/src/lib/prov/pkcs11/p11_mechanism.cpp
@@ -208,7 +208,7 @@ MechanismWrapper MechanismWrapper::create_rsa_sign_mechanism(const std::string&
mech.m_parameters = std::make_shared<MechanismParameters>();
mech.m_parameters->pss_params.hashAlg = static_cast<CK_MECHANISM_TYPE>(mechanism_info.hash);
mech.m_parameters->pss_params.mgf = static_cast<CK_RSA_PKCS_MGF_TYPE>(mechanism_info.mgf);
- mech.m_parameters->pss_params.sLen = mechanism_info.salt_size;
+ mech.m_parameters->pss_params.sLen = static_cast<Ulong>(mechanism_info.salt_size);
mech.m_mechanism.pParameter = mech.m_parameters.get();
mech.m_mechanism.ulParameterLen = sizeof(RsaPkcsPssParams);
}