Skip to content

Commit 8a37316

Browse files
committed
cbor.bignum: Use openssl.bignum.fromBinary if available
1 parent 86b5412 commit 8a37316

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cbor.bignum.lua

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ local function tagged2_to_bignum(value)
2626
return n;
2727
end
2828

29+
if bignum.fromBinary then
30+
tagged2_to_bignum = bignum.fromBinary;
31+
end
32+
2933
local function tagged3_to_bignum(value)
3034
return big_negatives_one - tagged2_to_bignum(value);
3135
end

0 commit comments

Comments
 (0)