Hi,
I copied the beidpkcs.dll from the sys32 folder.
Put my code in x64 mode.
Now I get this error : Could not load file or assembly 'Net.Pkcs11, Version=1.1.4512.24369,
Eli
I didn’t build it.
Where can I find the source code to build it?
I just took the dll from svn76
8.1 Structure packing
Cryptoki structures are packed to occupy as little space as is possible. In
particular, on
the Win32 and Win16 platforms, Cryptoki structures should be packed with
1-byte
alignment. In a UNIX environment, it may or may not be necessary (or even
possible) to
alter the byte-alignment of structures.
We (beidpkcs11.dll) package the pkcs11 structs always with 1-byte
alignment, but the pkcs11net wrapper uses the default (which happens to be
8-byte on my latest setup here)
Ok thanks,
I build all the DLL’s in x64 without error now.
My code runs without error, but my token session gives me no results in x64.
In x86 it works fine.
ByteArrayAttribute classAttribute = new ByteArrayAttribute(CKA.CLASS);
classAttribute.Value = BitConverter.GetBytes((uint)Net.Sf.Pkcs11.Wrapper.CKO.DATA);
session.FindObjectsInit(new P11Attribute[] { classAttribute });
P11Object[] foundObjects = session.FindObjects(50);
foundObjects in x64 is 0, in x86 its 43.