identity/der library
Properties
- DER_COSE_OID → Uint8List
-
A DER encoded
SEQUENCE(OID)
for DER-encoded-COSEfinal - ED25519_OID → Uint8List
-
A DER encoded
SEQUENCE(OID)
for the Ed25519 algorithmfinal
Functions
-
bufEquals(
ByteBuffer b1, ByteBuffer b2) → bool -
decodeLenBytes(
Uint8List buf, int offset) → int -
encodeLen(
Uint8List buf, int offset, int len) → int -
encodeLenBytes(
int len) → int -
unwrapDER(
ByteBuffer derEncoded, Uint8List oid) → Uint8List -
Extracts a payload from the given
derEncoded
data, and checks that it was tagged with the givenoid
. -
wrapDER(
ByteBuffer payload, Uint8List oid) → Uint8List -
Wraps the given
payload
in a DER encoding tagged with the given encodedoid
like so:SEQUENCE(oid, BITSTRING(payload))