Add node modules and compiled JavaScript from main (#54)
Co-authored-by: Oliver King <oking3@uncc.edu>
This commit is contained in:
committed by
GitHub
parent
4a983766a0
commit
52d71d28bd
21
node_modules/jose/lib/registry/ec_curves.js
generated
vendored
Normal file
21
node_modules/jose/lib/registry/ec_curves.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
const { getCurves } = require('crypto')
|
||||
|
||||
const curves = new Set()
|
||||
|
||||
if (getCurves().includes('prime256v1')) {
|
||||
curves.add('P-256')
|
||||
}
|
||||
|
||||
if (getCurves().includes('secp256k1')) {
|
||||
curves.add('secp256k1')
|
||||
}
|
||||
|
||||
if (getCurves().includes('secp384r1')) {
|
||||
curves.add('P-384')
|
||||
}
|
||||
|
||||
if (getCurves().includes('secp521r1')) {
|
||||
curves.add('P-521')
|
||||
}
|
||||
|
||||
module.exports = curves
|
Reference in New Issue
Block a user