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