🔒 Identifiers from IANA's COSE Algorithms Registry
- Implements all assigined entries in IANA's COSE Algorithm that have a name and a value.
- Simple exported constants, with no code to execute.
- Some name transformations were required to make them valid JS identifiers.
- For example,
HMAC 256/64
becomesHMAC256_s_64
andECDH-SS + HKDF-256
becomesECDH_SS_and_HKDF_256
.
- For example,
- Incudes
JSDoc
with a description as well as a note as to whether the value is currently deprecated or recommended. - It does not support reverse lookups. For example, there is not built in way
to find the name for, for example, the value
0
(a reverse lookup would yieldReserved
).
To install the package, you can use npm or yarn:
npm install @apeleghq/cose-algorithms
or
yarn add @apeleghq/cose-algorithms
import { encodings, decrypt } from '@apeleghq/cose-algorithms';
We welcome any contributions and feedback! Please feel free to submit pull requests, bug reports or feature requests to our GitHub repository.
This project is dedicated to the public domain, and you may do with it as you
wish. Check out the LICENSE.txt
file for more information.
If you download the full sources, note that some support files might (such as
.prettierrc.cjs
) might have a different license. In those cases, that license
applies.