An implementation of RFC8152


Licenses
MirOS/Unicode-TOU
Install
npm install @mattrglobal/cose@3.0.1-unstable.62b4662

Documentation

CBOR Object Signing and Encryption

This repository is home to an incomplete implementation of RFC 8152 written in Typescript.

Signing

The following algorithms are supported for COSE_Sign1

Signing Algorithm Description
ES256 Elliptic Curve Digital Signature Algorithm using the P-256 curve with SHA-256
ES384 Elliptic Curve Digital Signature Algorithm using the P-384 curve with SHA-384
ES512 Elliptic Curve Digital Signature Algorithm using the P-512 curve with SHA-512
EdDSA* Elliptic Curve Digital Signature Algorithm using the Ed25519 curve with SHA-512
PS256 RSA Probabilistic Signature Scheme (RSASSA-PSS) with SHA-256
PS384 RSA Probabilistic Signature Scheme (RSASSA-PSS) with SHA-384
PS512 RSA Probabilistic Signature Scheme (RSASSA-PSS) with SHA-512

*Only available in Node environments version 14 and above

Licensing

See here for licence information