UNPKG

@wildboar/pkcs

Version:
31 lines (30 loc) 1.18 kB
import { ASN1Element as _Element } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; import { OtherPrimeInfo } from "../PKCS-1/OtherPrimeInfo.ta"; export { OtherPrimeInfo, _decode_OtherPrimeInfo, _encode_OtherPrimeInfo, } from "../PKCS-1/OtherPrimeInfo.ta"; /** * @summary OtherPrimeInfos * @description * * ### ASN.1 Definition: * * ```asn1 * OtherPrimeInfos ::= SEQUENCE SIZE(1..MAX) OF OtherPrimeInfo * ``` */ export declare type OtherPrimeInfos = OtherPrimeInfo[]; /** * @summary Decodes an ASN.1 element into a(n) OtherPrimeInfos * @function * @param {_Element} el The element being decoded. * @returns {OtherPrimeInfos} The decoded data structure. */ export declare function _decode_OtherPrimeInfos(el: _Element): OtherPrimeInfos; /** * @summary Encodes a(n) OtherPrimeInfos 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 OtherPrimeInfos, encoded as an ASN.1 Element. */ export declare function _encode_OtherPrimeInfos(value: OtherPrimeInfos, elGetter: $.ASN1Encoder<OtherPrimeInfos>): _Element;