Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有BIGNUM结构,其中包含非常大的正整数。我正在使用BN_bn2bin函数将此 BIGNUM 转换为字节数组:
BIGNUM *bigInteger = ... BN_bn2bin(bigInteger, bigIntegerBytes);
我注意到 bigIntegerBytes 是无符号值表示。我想将这个整数从单值表示转换为二进制补码表示。你能告诉我该怎么做吗?
PS。我正在使用objective-c,所以也许有任何方法可以使用NSData。