UNPKG

pkcs-ts

Version:

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

22 lines 938 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._encode_ECPrivateKey = exports._decode_ECPrivateKey = void 0; const tslib_1 = require("tslib"); const $ = tslib_1.__importStar(require("asn1-ts/dist/node/functional")); let _cached_decoder_for_ECPrivateKey = null; function _decode_ECPrivateKey(el) { if (!_cached_decoder_for_ECPrivateKey) { _cached_decoder_for_ECPrivateKey = $._decodeInteger; } return _cached_decoder_for_ECPrivateKey(el); } exports._decode_ECPrivateKey = _decode_ECPrivateKey; let _cached_encoder_for_ECPrivateKey = null; function _encode_ECPrivateKey(value, elGetter) { if (!_cached_encoder_for_ECPrivateKey) { _cached_encoder_for_ECPrivateKey = $._encodeInteger; } return _cached_encoder_for_ECPrivateKey(value, elGetter); } exports._encode_ECPrivateKey = _encode_ECPrivateKey; //# sourceMappingURL=ECPrivateKey.ta.js.map