@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
36 lines • 1.34 kB
text/typescript
import { ASN1Element as _Element } from "@wildboar/asn1";
import * as $ from "@wildboar/asn1/functional";
import { KeyManagementInfo_Item } from "../PKCS-15/KeyManagementInfo-Item.ta.mjs";
/**
* @summary KeyManagementInfo
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* KeyManagementInfo ::= SEQUENCE OF SEQUENCE {
* keyId Identifier,
* keyInfo CHOICE {
* recipientInfo RecipientInfo,
* passwordInfo [0] PasswordInfo
* }
* } (CONSTRAINED BY {-- Each keyID must be unique --})
* ```
*/
export type KeyManagementInfo = KeyManagementInfo_Item[];
/**
* @summary Decodes an ASN.1 element into a(n) KeyManagementInfo
* @function
* @param {_Element} el The element being decoded.
* @returns {KeyManagementInfo} The decoded data structure.
*/
export declare function _decode_KeyManagementInfo(el: _Element): KeyManagementInfo;
/**
* @summary Encodes a(n) KeyManagementInfo 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, encoded as an ASN.1 Element.
*/
export declare function _encode_KeyManagementInfo(value: KeyManagementInfo, elGetter: $.ASN1Encoder<KeyManagementInfo>): _Element;
//# sourceMappingURL=KeyManagementInfo.ta.d.mts.map