@mattrglobal/cose
v3.1.0
Published
An implementation of RFC8152
Downloads
4,954
Keywords
Readme
CBOR Object Signing and Encryption
This repository is home to an incomplete implementation of RFC 8152 written in Typescript.
Initialising submodules
This project uses a Git submodule from the repository at github.com/cose-wg/Examples.git. That repository contains test cases. So you will need to pull them down for tests to run. To activate the submodule, run the following:
git submodule init
git submodule update
Signing
The following algorithms are supported for COSE_Sign1
| Signing Algorithm | Description | | ---------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | | ES256 | Elliptic Curve Digital Signature Algorithm using the P-256/brainpoolP256r1 curve with SHA-256 | | ES384 | Elliptic Curve Digital Signature Algorithm using the P-384/brainpoolP384r1 curve with SHA-384 | | ES512 | Elliptic Curve Digital Signature Algorithm using the P-512/brainpoolP512r1 curve with SHA-512 | | EdDSA | Elliptic Curve Digital Signature Algorithm using the Ed25519/Ed448 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 |
Licensing
See here for licence information