UNPKG

@wildboar/pkcs

Version:
37 lines (36 loc) 1.61 kB
import { ASN1Element as _Element } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; import { RecipientInfo } from "../CryptographicMessageSyntax/RecipientInfo.ta"; import { PasswordInfo } from "../PKCS-15/PasswordInfo.ta"; export { RecipientInfo, _decode_RecipientInfo, _encode_RecipientInfo, } from "../CryptographicMessageSyntax/RecipientInfo.ta"; export { PasswordInfo, _decode_PasswordInfo, _encode_PasswordInfo, } from "../PKCS-15/PasswordInfo.ta"; /** * @summary KeyManagementInfo_Item_keyInfo * @description * * ### ASN.1 Definition: * * ```asn1 * KeyManagementInfo-Item-keyInfo ::= CHOICE { -- REMOVED_FROM_UNNESTING -- } * ``` */ export declare type KeyManagementInfo_Item_keyInfo = { recipientInfo: RecipientInfo; } | { passwordInfo: PasswordInfo; }; /** * @summary Decodes an ASN.1 element into a(n) KeyManagementInfo_Item_keyInfo * @function * @param {_Element} el The element being decoded. * @returns {KeyManagementInfo_Item_keyInfo} The decoded data structure. */ export declare function _decode_KeyManagementInfo_Item_keyInfo(el: _Element): KeyManagementInfo_Item_keyInfo; /** * @summary Encodes a(n) KeyManagementInfo_Item_keyInfo 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 KeyManagementInfo_Item_keyInfo, encoded as an ASN.1 Element. */ export declare function _encode_KeyManagementInfo_Item_keyInfo(value: KeyManagementInfo_Item_keyInfo, elGetter: $.ASN1Encoder<KeyManagementInfo_Item_keyInfo>): _Element;