@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
35 lines • 1.44 kB
text/typescript
import { ASN1Element as _Element } from "@wildboar/asn1";
import * as $ from "@wildboar/asn1/functional";
import { RecipientInfo } from "../CryptographicMessageSyntax/RecipientInfo.ta.mjs";
import { PasswordInfo } from "../PKCS-15/PasswordInfo.ta.mjs";
/**
* @summary KeyManagementInfo_Item_keyInfo
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* KeyManagementInfo-Item-keyInfo ::= CHOICE { -- REMOVED_FROM_UNNESTING -- }
* ```
*/
export 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 The element being encoded.
* @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;
//# sourceMappingURL=KeyManagementInfo-Item-keyInfo.ta.d.mts.map