1 | module.exports.KEYOBJECT = Symbol('KEYOBJECT')
|
2 | module.exports.PRIVATE_MEMBERS = Symbol('PRIVATE_MEMBERS')
|
3 | module.exports.PUBLIC_MEMBERS = Symbol('PUBLIC_MEMBERS')
|
4 | module.exports.THUMBPRINT_MATERIAL = Symbol('THUMBPRINT_MATERIAL')
|
5 | module.exports.JWK_MEMBERS = Symbol('JWK_MEMBERS')
|
6 | module.exports.KEY_MANAGEMENT_ENCRYPT = Symbol('KEY_MANAGEMENT_ENCRYPT')
|
7 | module.exports.KEY_MANAGEMENT_DECRYPT = Symbol('KEY_MANAGEMENT_DECRYPT')
|
8 |
|
9 | const USES_MAPPING = {
|
10 | sig: new Set(['sign', 'verify']),
|
11 | enc: new Set(['encrypt', 'decrypt', 'wrapKey', 'unwrapKey', 'deriveKey'])
|
12 | }
|
13 | const OPS = new Set([...USES_MAPPING.sig, ...USES_MAPPING.enc])
|
14 | const USES = new Set(Object.keys(USES_MAPPING))
|
15 |
|
16 | module.exports.USES_MAPPING = USES_MAPPING
|
17 | module.exports.OPS = OPS
|
18 | module.exports.USES = USES
|