mirror of
https://github.com/danbulant/jose
synced 2026-05-20 04:48:52 +00:00
9 lines
300 B
JavaScript
9 lines
300 B
JavaScript
const { KeyObject, sign, verify } = require('crypto')
|
|
|
|
const [major, minor] = process.version.substr(1).split('.').map(x => parseInt(x, 10))
|
|
|
|
module.exports = {
|
|
oaepHashSupported: major > 12 || (major === 12 && minor >= 9),
|
|
keyObjectSupported: !!KeyObject,
|
|
edDSASupported: !!sign && !!verify
|
|
}
|