@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
30 lines • 1.11 kB
text/typescript
import { ASN1Element as _Element } from "@wildboar/asn1";
import * as $ from "@wildboar/asn1/functional";
import { AlgorithmIdentifier } from "../PKCS-1/AlgorithmIdentifier.ta.mjs";
/**
* @summary HashAlgorithm
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* HashAlgorithm ::= AlgorithmIdentifier { {OAEP-PSSDigestAlgorithms} }
* ```
*/
export type HashAlgorithm = AlgorithmIdentifier;
/**
* @summary Decodes an ASN.1 element into a(n) HashAlgorithm
* @function
* @param {_Element} el The element being decoded.
* @returns {HashAlgorithm} The decoded data structure.
*/
export declare function _decode_HashAlgorithm(el: _Element): HashAlgorithm;
/**
* @summary Encodes a(n) HashAlgorithm 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 HashAlgorithm, encoded as an ASN.1 Element.
*/
export declare function _encode_HashAlgorithm(value: HashAlgorithm, elGetter: $.ASN1Encoder<HashAlgorithm>): _Element;
//# sourceMappingURL=HashAlgorithm.ta.d.mts.map