jose/dist/node/cjs/runtime/ciphers.js
2021-08-20 14:09:59 +02:00

8 lines
258 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const crypto_1 = require("crypto");
let ciphers;
exports.default = (algorithm) => {
ciphers || (ciphers = new Set(crypto_1.getCiphers()));
return ciphers.has(algorithm);
};