cose-kit
Version:
This is an early prototype of a RFC8152 COSE library for node.js.
15 lines (14 loc) • 321 B
JavaScript
import { reverseMap } from '../util/maps.js';
export const ALG = new Map([
[-8, 'EdDSA'],
[-7, 'ES256'],
[-35, 'ES384'],
[-36, 'ES512'],
[-37, 'PS256'],
[-38, 'PS384'],
[-39, 'PS512'],
[-257, 'RS256'],
[-258, 'RS384'],
[-259, 'RS512'],
]);
export const COSE_ALG = reverseMap(ALG);