astro-ghostcms/.pnpm-store/v3/files/f2/6f2daa08e74c9cb0465e584511b...

9 lines
337 B
Plaintext
Raw Normal View History

2024-02-14 14:10:47 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = (key, alg) => {
const { modulusLength } = key.asymmetricKeyDetails;
if (typeof modulusLength !== 'number' || modulusLength < 2048) {
throw new TypeError(`${alg} requires key modulusLength to be 2048 bits or larger`);
}
};