pkcs-ts
Version:
PKCS #1 through #15 (Except #11) - Private and Public Keys, Certificates, and More
22 lines • 891 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports._encode_PublicKey = exports._decode_PublicKey = void 0;
const tslib_1 = require("tslib");
const $ = tslib_1.__importStar(require("asn1-ts/dist/node/functional"));
let _cached_decoder_for_PublicKey = null;
function _decode_PublicKey(el) {
if (!_cached_decoder_for_PublicKey) {
_cached_decoder_for_PublicKey = $._decodeBitString;
}
return _cached_decoder_for_PublicKey(el);
}
exports._decode_PublicKey = _decode_PublicKey;
let _cached_encoder_for_PublicKey = null;
function _encode_PublicKey(value, elGetter) {
if (!_cached_encoder_for_PublicKey) {
_cached_encoder_for_PublicKey = $._encodeBitString;
}
return _cached_encoder_for_PublicKey(value, elGetter);
}
exports._encode_PublicKey = _encode_PublicKey;
//# sourceMappingURL=PublicKey.ta.js.map