conversions for 64 bit mingw; refs #30
This commit is contained in:
@@ -2256,7 +2256,7 @@ namespace cryptoki {
|
|||||||
bool decryptinit(CK_MECHANISM_TYPE type, std::string param) {
|
bool decryptinit(CK_MECHANISM_TYPE type, std::string param) {
|
||||||
CRYPTOLOG("log");
|
CRYPTOLOG("log");
|
||||||
CK_MECHANISM mech = {
|
CK_MECHANISM mech = {
|
||||||
type, param.size()?¶m[0]:0, param.size()
|
type, param.size()?¶m[0]:0, (CK_ULONG)param.size()
|
||||||
};
|
};
|
||||||
CRYPTOLOG("decryptinit: type="<<type<<"; mech=("<<mech.mechanism
|
CRYPTOLOG("decryptinit: type="<<type<<"; mech=("<<mech.mechanism
|
||||||
<<", "<<mech.pParameter<<", "<<mech.ulParameterLen<<')');
|
<<", "<<mech.pParameter<<", "<<mech.ulParameterLen<<')');
|
||||||
@@ -2487,7 +2487,7 @@ namespace cryptoki {
|
|||||||
CRYPTOLOG("log");
|
CRYPTOLOG("log");
|
||||||
CK_MECHANISM mech = {
|
CK_MECHANISM mech = {
|
||||||
type, param.size()?const_cast<CK_VOID_PTR>((const void*)¶m[0]):0,
|
type, param.size()?const_cast<CK_VOID_PTR>((const void*)¶m[0]):0,
|
||||||
param.size()
|
(CK_ULONG)param.size()
|
||||||
};
|
};
|
||||||
CRYPTOLOG("encryptinit: type="<<type<<"; mech=("<<mech.mechanism
|
CRYPTOLOG("encryptinit: type="<<type<<"; mech=("<<mech.mechanism
|
||||||
<<", "<<mech.pParameter<<", "<<mech.ulParameterLen<<')');
|
<<", "<<mech.pParameter<<", "<<mech.ulParameterLen<<')');
|
||||||
@@ -2604,7 +2604,7 @@ namespace cryptoki {
|
|||||||
bool signinit(CK_MECHANISM_TYPE type, std::string param) {
|
bool signinit(CK_MECHANISM_TYPE type, std::string param) {
|
||||||
CRYPTOLOG("log");
|
CRYPTOLOG("log");
|
||||||
CK_MECHANISM mech = {
|
CK_MECHANISM mech = {
|
||||||
type, param.size()?¶m[0]:0, param.size()
|
type, param.size()?¶m[0]:0, (CK_ULONG)param.size()
|
||||||
};
|
};
|
||||||
CRYPTOLOG("signinit: type="<<type<<"; mech=("<<mech.mechanism
|
CRYPTOLOG("signinit: type="<<type<<"; mech=("<<mech.mechanism
|
||||||
<<", "<<mech.pParameter<<", "<<mech.ulParameterLen<<')');
|
<<", "<<mech.pParameter<<", "<<mech.ulParameterLen<<')');
|
||||||
@@ -2639,7 +2639,7 @@ namespace cryptoki {
|
|||||||
bool verifyinit(CK_MECHANISM_TYPE type, std::string param) {
|
bool verifyinit(CK_MECHANISM_TYPE type, std::string param) {
|
||||||
CRYPTOLOG("log");
|
CRYPTOLOG("log");
|
||||||
CK_MECHANISM mech = {
|
CK_MECHANISM mech = {
|
||||||
type, param.size()?¶m[0]:0, param.size()
|
type, param.size()?¶m[0]:0, (CK_ULONG)param.size()
|
||||||
};
|
};
|
||||||
CRYPTOLOG("verifyinit: type="<<type<<"; mech=("<<mech.mechanism
|
CRYPTOLOG("verifyinit: type="<<type<<"; mech=("<<mech.mechanism
|
||||||
<<", "<<mech.pParameter<<", "<<mech.ulParameterLen<<')');
|
<<", "<<mech.pParameter<<", "<<mech.ulParameterLen<<')');
|
||||||
|
Reference in New Issue
Block a user