Open microshine opened 8 years ago
@TooTallNate sorry to bother you on this one but we are stuck on this one as well. We need this for our PKCS# 11 interop library - https://github.com/PeculiarVentures/graphene
What is the type of CK_FLAGS
?
CK_FLAGS - type from pkcs11t.ts file
@TooTallNate any chance you can look at this, we would appreciate it.
I found answer to my question, but I've got next question
/*
* If you're using Microsoft Developer Studio 5.0 to produce
* Win32 stuff, this might be done by using the following
* preprocessor directive before including pkcs11.h or pkcs11t.h:
*
* #pragma pack(push, cryptoki, 1)
*
* and using the following preprocessor directive after including
* pkcs11.h or pkcs11t.h:
*
* #pragma pack(pop, cryptoki)
*/
How can I apply #pragma pack(push, cryptoki, 1)
from JavaScript?
I found answer to my question, but I've got next question
/* * If you're using Microsoft Developer Studio 5.0 to produce * Win32 stuff, this might be done by using the following * preprocessor directive before including pkcs11.h or pkcs11t.h: * * #pragma pack(push, cryptoki, 1) * * and using the following preprocessor directive after including * pkcs11.h or pkcs11t.h: * * #pragma pack(pop, cryptoki) */
How can I apply
#pragma pack(push, cryptoki, 1)
from JavaScript?
you can try set the property of struct isPacked=true
TypeScript PKCS11 def
Using:
Function tested on Windows 10 x64 Result is wrong:
Here is result of
$info
in hex