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
derEncodeddata, and checks that it was tagged with the givenoid. -
wrapDER(
ByteBuffer payload, Uint8List oid) → Uint8List -
Wraps the given
payloadin a DER encoding tagged with the given encodedoidlike so:SEQUENCE(oid, BITSTRING(payload))