Benjamin-Shengming
Benjamin-Shengming
virtualbox linux 64 bits ``` bash-4.3# uname -m x86_64 ``` ``` bash-4.3# lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 3 On-line CPU(s) list: 0-2 Thread(s)...
Do you mean these defines? ``` #define CK_PTR * #define CK_DEFINE_FUNCTION(returnType, name) returnType name #define CK_DECLARE_FUNCTION(returnType, name) returnType name #define CK_DECLARE_FUNCTION_POINTER(returnType, name) returnType (* name) #define CK_CALLBACK_FUNCTION(returnType, name) returnType (*...
tried master branch still get same error: ``` Python 3.7.4 (default, Oct 3 2019, 04:30:14) [GCC 4.8.2] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import...
It might be related to how Python was built. I can reproduce the issue by following steps: 1. on ubuntu14.04, download Python-3.7.4 source code and untar it, 2. guarantee libssl-dev...
more info ``` import pkcs11 from pkcs11 import KeyType lib = pkcs11.lib("/opt/bvhsm/usr/lib64/libbvpkcs.so") token = lib.get_token() session = token.open() key = session.generate_key(KeyType.AES, 256) unpack attributes Attribute.CLASS len of value 4 b'\x04\x00\x00\x00'...
same os, same pkcs11 lib but python3.4 from ubuntu ``` >>> import pkcs11 >>> from pkcs11 import KeyType >>> lib = pkcs11.lib("/opt/bvhsm/usr/lib64/libbvpkcs.so") >>> token = lib.get_token() >>> session = token.open()...
> Okay so I'm guessing it's a mismatch between how long Python thinks an L is and how long PKCS#11 thinks an L is. Is one being compiled for a...
> Especially if the LFS machine is missing some #define (those headers are full of dynamically sized types). I can reproduce the issue on ubuntu 1404 as well. 1. Build...
@figbux @mehmetozcaan I have tried GCC 9.0 to build python3.7 from source, seems that bug disappeared. But I have tried that only once and I can't upgrade GCC from 4.8...