@wildboar/pki-stub
Version:
X.510 PKI-Stub ASN.1 data structures in TypeScript
22 lines (21 loc) • 686 B
JavaScript
import * as $ from "@wildboar/asn1/functional";
/**
* @summary Decodes an ASN.1 element into a(n) AlgoInvoke
* @function
* @param {_Element} el The element being decoded.
* @returns {AlgoInvoke} The decoded data structure.
*/
export function _decode_AlgoInvoke(el) {
return $._decodeAny(el);
}
/**
* @summary Encodes a(n) AlgoInvoke into an ASN.1 Element.
* @function
* @param value The element being encoded.
* @param elGetter A function that can be used to get new ASN.1 elements.
* @returns {_Element} The AlgoInvoke, encoded as an ASN.1 Element.
*/
export function _encode_AlgoInvoke(value, elGetter) {
return $._encodeAny(value, elGetter);
}
/* eslint-enable */