UNPKG

@wildboar/pkcs

Version:
20 lines (19 loc) 674 B
import * as $ from "@wildboar/asn1/functional"; /** * @summary Returns a function that will decode an ASN.1 element into a(n) ENCRYPTED * @function * @param {_Element} el The element being decoded. * @returns A function that will decode an ASN.1 element. */ export function _get_decoder_for_ENCRYPTED(_decode_ToBeEnciphered) { return $._decodeOctetString; } /** * @summary Returns a function that will encode a(n) ENCRYPTED into an ASN.1 Element. * @function * @returns A function that will encode a(n) ENCRYPTED as an ASN.1 element. */ export function _get_encoder_for_ENCRYPTED(_encode_ToBeEnciphered) { return $._encodeOctetString; } /* eslint-enable */