@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
51 lines • 3.05 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports._encode_AuthObjects = exports._decode_AuthObjects = exports._get_encoder_for_PathOrObjects = exports._get_decoder_for_PathOrObjects = exports._encode_AuthenticationType = exports._decode_AuthenticationType = void 0;
const AuthenticationType_ta_1 = require("../PKCS-15/AuthenticationType.ta");
const PathOrObjects_ta_1 = require("../PKCS-15/PathOrObjects.ta");
var AuthenticationType_ta_2 = require("../PKCS-15/AuthenticationType.ta");
Object.defineProperty(exports, "_decode_AuthenticationType", { enumerable: true, get: function () { return AuthenticationType_ta_2._decode_AuthenticationType; } });
Object.defineProperty(exports, "_encode_AuthenticationType", { enumerable: true, get: function () { return AuthenticationType_ta_2._encode_AuthenticationType; } });
var PathOrObjects_ta_2 = require("../PKCS-15/PathOrObjects.ta");
Object.defineProperty(exports, "_get_decoder_for_PathOrObjects", { enumerable: true, get: function () { return PathOrObjects_ta_2._get_decoder_for_PathOrObjects; } });
Object.defineProperty(exports, "_get_encoder_for_PathOrObjects", { enumerable: true, get: function () { return PathOrObjects_ta_2._get_encoder_for_PathOrObjects; } });
/* END_OF_SYMBOL_DEFINITION AuthObjects */
/* START_OF_SYMBOL_DEFINITION _cached_decoder_for_AuthObjects */
let _cached_decoder_for_AuthObjects = null;
/* END_OF_SYMBOL_DEFINITION _cached_decoder_for_AuthObjects */
/* START_OF_SYMBOL_DEFINITION _decode_AuthObjects */
/**
* @summary Decodes an ASN.1 element into a(n) AuthObjects
* @function
* @param {_Element} el The element being decoded.
* @returns {AuthObjects} The decoded data structure.
*/
function _decode_AuthObjects(el) {
if (!_cached_decoder_for_AuthObjects) {
_cached_decoder_for_AuthObjects = PathOrObjects_ta_1._get_decoder_for_PathOrObjects(AuthenticationType_ta_1._decode_AuthenticationType);
}
return _cached_decoder_for_AuthObjects(el);
}
exports._decode_AuthObjects = _decode_AuthObjects;
/* END_OF_SYMBOL_DEFINITION _decode_AuthObjects */
/* START_OF_SYMBOL_DEFINITION _cached_encoder_for_AuthObjects */
let _cached_encoder_for_AuthObjects = null;
/* END_OF_SYMBOL_DEFINITION _cached_encoder_for_AuthObjects */
/* START_OF_SYMBOL_DEFINITION _encode_AuthObjects */
/**
* @summary Encodes a(n) AuthObjects 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 AuthObjects, encoded as an ASN.1 Element.
*/
function _encode_AuthObjects(value, elGetter) {
if (!_cached_encoder_for_AuthObjects) {
_cached_encoder_for_AuthObjects = PathOrObjects_ta_1._get_encoder_for_PathOrObjects(AuthenticationType_ta_1._encode_AuthenticationType);
}
return _cached_encoder_for_AuthObjects(value, elGetter);
}
exports._encode_AuthObjects = _encode_AuthObjects;
/* END_OF_SYMBOL_DEFINITION _encode_AuthObjects */
/* eslint-enable */
//# sourceMappingURL=AuthObjects.ta.js.map