UNPKG

pkcs-ts

Version:

PKCS #1 through #15 (Except #11) - Private and Public Keys, Certificates, and More

22 lines 912 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._encode_PrivateKey = exports._decode_PrivateKey = void 0; const tslib_1 = require("tslib"); const $ = tslib_1.__importStar(require("asn1-ts/dist/node/functional")); let _cached_decoder_for_PrivateKey = null; function _decode_PrivateKey(el) { if (!_cached_decoder_for_PrivateKey) { _cached_decoder_for_PrivateKey = $._decodeOctetString; } return _cached_decoder_for_PrivateKey(el); } exports._decode_PrivateKey = _decode_PrivateKey; let _cached_encoder_for_PrivateKey = null; function _encode_PrivateKey(value, elGetter) { if (!_cached_encoder_for_PrivateKey) { _cached_encoder_for_PrivateKey = $._encodeOctetString; } return _cached_encoder_for_PrivateKey(value, elGetter); } exports._encode_PrivateKey = _encode_PrivateKey; //# sourceMappingURL=PrivateKey.ta.js.map