@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
33 lines (32 loc) • 1.3 kB
TypeScript
import { ASN1Element as _Element } from "asn1-ts";
import * as $ from "asn1-ts/dist/node/functional";
import { PathOrObjects } from "../PKCS-15/PathOrObjects.ta";
import { SecretKeyType } from "../PKCS-15/SecretKeyType.ta";
export { PathOrObjects, _get_decoder_for_PathOrObjects, _get_encoder_for_PathOrObjects, } from "../PKCS-15/PathOrObjects.ta";
export { SecretKeyType, _decode_SecretKeyType, _encode_SecretKeyType, } from "../PKCS-15/SecretKeyType.ta";
/**
* @summary SecretKeys
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* SecretKeys ::= PathOrObjects {SecretKeyType}
* ```
*/
export declare 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} el The element being decoded.
* @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;