vess-mdl
Version:
Parse and and validate MDOC CBOR encoded binaries according to ISO 18013-5.
15 lines (14 loc) • 407 B
TypeScript
/**
* Exports the COSE Key as a raw key.
*
* It's effectively the same than:
*
* crypto.subtle.exportKey('raw', importedJWK)
*
* Note: This only works for KTY = EC.
*
* @param {Map<number, Uint8Array | number>} key - The COSE Key
* @returns {Uint8Array} - The raw key
*/
declare const COSEKeyToRAW: (key: Map<number, Uint8Array | number> | Uint8Array) => Uint8Array;
export default COSEKeyToRAW;