@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
30 lines (29 loc) • 1.12 kB
TypeScript
import { ASN1Element as _Element } from "asn1-ts";
import * as $ from "asn1-ts/dist/node/functional";
import { AlgorithmIdentifier } from "@wildboar/x500/src/lib/modules/AuthenticationFramework/AlgorithmIdentifier.ta";
/**
* @summary KeyWrapAlgorithm
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* KeyWrapAlgorithm ::= AlgorithmIdentifier
* ```
*/
export declare type KeyWrapAlgorithm = AlgorithmIdentifier;
/**
* @summary Decodes an ASN.1 element into a(n) KeyWrapAlgorithm
* @function
* @param {_Element} el The element being decoded.
* @returns {KeyWrapAlgorithm} The decoded data structure.
*/
export declare function _decode_KeyWrapAlgorithm(el: _Element): AlgorithmIdentifier;
/**
* @summary Encodes a(n) KeyWrapAlgorithm 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 KeyWrapAlgorithm, encoded as an ASN.1 Element.
*/
export declare function _encode_KeyWrapAlgorithm(value: KeyWrapAlgorithm, elGetter: $.ASN1Encoder<KeyWrapAlgorithm>): _Element;