@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
31 lines (30 loc) • 1.15 kB
TypeScript
import { ASN1Element as _Element } from "asn1-ts";
import * as $ from "asn1-ts/dist/node/functional";
import { RecipientInfo } from "../PKCS7/RecipientInfo.ta";
export { RecipientInfo, _decode_RecipientInfo, _encode_RecipientInfo, } from "../PKCS7/RecipientInfo.ta";
/**
* @summary RecipientInfos
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* RecipientInfos ::= SET SIZE (1..MAX) OF RecipientInfo
* ```
*/
export declare type RecipientInfos = RecipientInfo[];
/**
* @summary Decodes an ASN.1 element into a(n) RecipientInfos
* @function
* @param {_Element} el The element being decoded.
* @returns {RecipientInfos} The decoded data structure.
*/
export declare function _decode_RecipientInfos(el: _Element): RecipientInfos;
/**
* @summary Encodes a(n) RecipientInfos 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 RecipientInfos, encoded as an ASN.1 Element.
*/
export declare function _encode_RecipientInfos(value: RecipientInfos, elGetter: $.ASN1Encoder<RecipientInfos>): _Element;