ssh_library/core/utils/bigint library
Functions
-
decodeBigIntWithSign(
int sign, List< int> magnitude) → BigInt - Decode a big integer with arbitrary sign. When: sign == 0: Zero regardless of magnitude sign < 0: Negative sign > 0: Positive
-
encodeBigInt(
BigInt? number) → Uint8List - Encode a BigInt into bytes using big-endian encoding. It encodes the integer to a minimal twos-compliment integer as defined by ASN.1
-
encodeBigIntAsUnsigned(
BigInt number) → Uint8List - Encode as Big Endian unsigned byte array.