📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-07-01 17:32:16
📂
/ (Root)
/
home
/
orkouolp
/
nodevenv
/
node_js
/
orkofarms.com
/
18
/
lib
/
node_modules
/
jose
/
dist
/
node
/
esm
/
runtime
📍 /home/orkouolp/nodevenv/node_js/orkofarms.com/18/lib/node_modules/jose/dist/node/esm/runtime
🔄 Refresh
✏️
Editing: get_sign_verify_key.js
Writable
import { KeyObject, createSecretKey } from 'crypto'; import { isCryptoKey } from './webcrypto.js'; import { checkSigCryptoKey } from '../lib/crypto_key.js'; import invalidKeyInput from '../lib/invalid_key_input.js'; import { types } from './is_key_like.js'; export default function getSignVerifyKey(alg, key, usage) { if (key instanceof Uint8Array) { if (!alg.startsWith('HS')) { throw new TypeError(invalidKeyInput(key, ...types)); } return createSecretKey(key); } if (key instanceof KeyObject) { return key; } if (isCryptoKey(key)) { checkSigCryptoKey(key, alg, usage); return KeyObject.from(key); } throw new TypeError(invalidKeyInput(key, ...types, 'Uint8Array')); }
💾 Save Changes
❌ Cancel