mirror of
https://github.com/danbulant/jose
synced 2026-05-20 04:48:52 +00:00
8 lines
263 B
JavaScript
8 lines
263 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const crypto_1 = require("crypto");
|
|
let ciphers;
|
|
exports.default = (algorithm) => {
|
|
ciphers || (ciphers = new Set((0, crypto_1.getCiphers)()));
|
|
return ciphers.has(algorithm);
|
|
};
|