@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
48 lines • 2.67 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports._encode_PrivateKeyInfo = exports._decode_PrivateKeyInfo = exports._encode_OneAsymmetricKey = exports._decode_OneAsymmetricKey = exports.OneAsymmetricKey = void 0;
const OneAsymmetricKey_ta_1 = require("../AsymmetricKeyPackageModuleV1/OneAsymmetricKey.ta");
var OneAsymmetricKey_ta_2 = require("../AsymmetricKeyPackageModuleV1/OneAsymmetricKey.ta");
Object.defineProperty(exports, "OneAsymmetricKey", { enumerable: true, get: function () { return OneAsymmetricKey_ta_2.OneAsymmetricKey; } });
Object.defineProperty(exports, "_decode_OneAsymmetricKey", { enumerable: true, get: function () { return OneAsymmetricKey_ta_2._decode_OneAsymmetricKey; } });
Object.defineProperty(exports, "_encode_OneAsymmetricKey", { enumerable: true, get: function () { return OneAsymmetricKey_ta_2._encode_OneAsymmetricKey; } });
/* END_OF_SYMBOL_DEFINITION PrivateKeyInfo */
/* START_OF_SYMBOL_DEFINITION _cached_decoder_for_PrivateKeyInfo */
let _cached_decoder_for_PrivateKeyInfo = null;
/* END_OF_SYMBOL_DEFINITION _cached_decoder_for_PrivateKeyInfo */
/* START_OF_SYMBOL_DEFINITION _decode_PrivateKeyInfo */
/**
* @summary Decodes an ASN.1 element into a(n) PrivateKeyInfo
* @function
* @param {_Element} el The element being decoded.
* @returns {PrivateKeyInfo} The decoded data structure.
*/
function _decode_PrivateKeyInfo(el) {
if (!_cached_decoder_for_PrivateKeyInfo) {
_cached_decoder_for_PrivateKeyInfo = OneAsymmetricKey_ta_1._decode_OneAsymmetricKey;
}
return _cached_decoder_for_PrivateKeyInfo(el);
}
exports._decode_PrivateKeyInfo = _decode_PrivateKeyInfo;
/* END_OF_SYMBOL_DEFINITION _decode_PrivateKeyInfo */
/* START_OF_SYMBOL_DEFINITION _cached_encoder_for_PrivateKeyInfo */
let _cached_encoder_for_PrivateKeyInfo = null;
/* END_OF_SYMBOL_DEFINITION _cached_encoder_for_PrivateKeyInfo */
/* START_OF_SYMBOL_DEFINITION _encode_PrivateKeyInfo */
/**
* @summary Encodes a(n) PrivateKeyInfo into an ASN.1 Element.
* @function
* @param {value} el The element being decoded.
* @param elGetter A function that can be used to get new ASN.1 elements.
* @returns {_Element} The PrivateKeyInfo, encoded as an ASN.1 Element.
*/
function _encode_PrivateKeyInfo(value, elGetter) {
if (!_cached_encoder_for_PrivateKeyInfo) {
_cached_encoder_for_PrivateKeyInfo = OneAsymmetricKey_ta_1._encode_OneAsymmetricKey;
}
return _cached_encoder_for_PrivateKeyInfo(value, elGetter);
}
exports._encode_PrivateKeyInfo = _encode_PrivateKeyInfo;
/* END_OF_SYMBOL_DEFINITION _encode_PrivateKeyInfo */
/* eslint-enable */
//# sourceMappingURL=PrivateKeyInfo.ta.js.map