Package-level declarations
Types
Specialization of Asn1Decodable, able to parse PEM-encoded strings as per RFC 1421. Use in tandem with PemEncodable.
Specialization of Asn1Encodable, able to produce PEM-encoded strings as per RFC 1421. Use in tandem with PemDecodable.
Functions
Decodes an unsigned BigInteger from bytes using varint encoding as used within ASN.1: groups of seven bits are encoded into a byte, while the highest bit indicates if more bytes are to come. Trailing bytes are ignored.
Decodes an ASN.1 unsigned varint to a BigInteger, copying all bytes from the source into a ByteArray.
Decodes a BigInteger from bytes assuming the same encoding as the Asn1Primitive.content property of an Asn1Primitive containing an ASN.1 INTEGER
Decode the Asn1Primitive as a BigInteger. assertTag defaults to Asn1Element.Tag.INT, but can be overridden (for implicitly tagged integers, for example)
Exception-free version of decodeToBigInteger
Encodes this number into a ByteArray using the same encoding as the Asn1Primitive.content property of an Asn1Primitive containing an ASN.1 INTEGER
Produces an INTEGER as Asn1Primitive
Encodes this PemEncodable into a PEM-encoded string
Tries to convert a BigInteger to a UUID. Only guaranteed to work with BigIntegers that contain the unsigned (positive) integer representation of a UUID, chances are high, though, that it works with random positive BigIntegers between 16 and 14 bytes long.
Creates an INTEGER Asn1Primitive from value
Converts the BigInteger to the corresponding Asn1Integer.
Encodes this number using varint encoding as used within ASN.1: groups of seven bits are encoded into a byte, while the highest bit indicates if more bytes are to come
Converts the Asn1Integer to the corresponding BigInteger.
Converts this UUID to a BigInteger representation
Encodes this number using varint encoding as used within ASN.1: groups of seven bits are encoded into a byte, while the highest bit indicates if more bytes are to come