@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 { PublicKeyType } from "../PKCS-15/PublicKeyType.ta";
export { PathOrObjects, _get_decoder_for_PathOrObjects, _get_encoder_for_PathOrObjects, } from "../PKCS-15/PathOrObjects.ta";
export { PublicKeyType, _decode_PublicKeyType, _encode_PublicKeyType, } from "../PKCS-15/PublicKeyType.ta";
/**
* @summary PublicKeys
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* PublicKeys ::= PathOrObjects {PublicKeyType}
* ```
*/
export declare type PublicKeys = PathOrObjects<PublicKeyType>;
/**
* @summary Decodes an ASN.1 element into a(n) PublicKeys
* @function
* @param {_Element} el The element being decoded.
* @returns {PublicKeys} The decoded data structure.
*/
export declare function _decode_PublicKeys(el: _Element): PublicKeys;
/**
* @summary Encodes a(n) PublicKeys 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 PublicKeys, encoded as an ASN.1 Element.
*/
export declare function _encode_PublicKeys(value: PublicKeys, elGetter: $.ASN1Encoder<PublicKeys>): _Element;