diff --git a/src/cryptoki.hxx b/src/cryptoki.hxx index 0d734ba..99c0e94 100644 --- a/src/cryptoki.hxx +++ b/src/cryptoki.hxx @@ -2256,7 +2256,7 @@ namespace cryptoki { bool decryptinit(CK_MECHANISM_TYPE type, std::string param) { CRYPTOLOG("log"); CK_MECHANISM mech = { - type, param.size()?¶m[0]:0, param.size() + type, param.size()?¶m[0]:0, (CK_ULONG)param.size() }; CRYPTOLOG("decryptinit: type="<((const void*)¶m[0]):0, - param.size() + (CK_ULONG)param.size() }; CRYPTOLOG("encryptinit: type="<