我没有找到任何Python库可以完成BN_bin2bn在C++中所做的事情,我该如何解决这个问题?python openssl 1个回答 -1投票 struct模块为您提供类似的转换,包括将表示整数的字节转换为Python int实例。>>> import struct >>> example = 'I\x96\x02\xd2' >>> struct.unpack('>L', example) (1234567890,) 最新...
What I can't understand is how the function BN_bin2bn works (or at least, I know what it does but I think doesn't do it correctly). For example, imagine that I have to transform the string "1234" to the BIGNUM->d (that it's a pointer to a long): Initial params: s = "123...