@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
38 lines • 1.57 kB
text/typescript
import { ASN1Element as _Element } from "@wildboar/asn1";
import * as $ from "@wildboar/asn1/functional";
import { IssuerAndSerialNumber } from "../CryptographicMessageSyntax/IssuerAndSerialNumber.ta.mjs";
import { RecipientKeyIdentifier } from "../CryptographicMessageSyntax/RecipientKeyIdentifier.ta.mjs";
/**
* @summary KeyAgreeRecipientIdentifier
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* KeyAgreeRecipientIdentifier ::= CHOICE {
* issuerAndSerialNumber IssuerAndSerialNumber,
* rKeyId [0] IMPLICIT RecipientKeyIdentifier
* }
* ```
*/
export type KeyAgreeRecipientIdentifier = {
issuerAndSerialNumber: IssuerAndSerialNumber;
} | {
rKeyId: RecipientKeyIdentifier;
};
/**
* @summary Decodes an ASN.1 element into a(n) KeyAgreeRecipientIdentifier
* @function
* @param {_Element} el The element being decoded.
* @returns {KeyAgreeRecipientIdentifier} The decoded data structure.
*/
export declare function _decode_KeyAgreeRecipientIdentifier(el: _Element): KeyAgreeRecipientIdentifier;
/**
* @summary Encodes a(n) KeyAgreeRecipientIdentifier 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 KeyAgreeRecipientIdentifier, encoded as an ASN.1 Element.
*/
export declare function _encode_KeyAgreeRecipientIdentifier(value: KeyAgreeRecipientIdentifier, elGetter: $.ASN1Encoder<KeyAgreeRecipientIdentifier>): _Element;
//# sourceMappingURL=KeyAgreeRecipientIdentifier.ta.d.mts.map