@wildboar/pki-stub
Version:
X.510 PKI-Stub ASN.1 data structures in TypeScript
29 lines • 873 B
text/typescript
import { BIT_STRING } from "@wildboar/asn1";
import * as $ from "@wildboar/asn1/functional";
/**
* @summary PublicKey
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* PublicKey ::= BIT STRING
* ```
*/
export type PublicKey = BIT_STRING;
/**
* @summary Decodes an ASN.1 element into a(n) PublicKey
* @function
* @param {_Element} el The element being decoded.
* @returns {PublicKey} The decoded data structure.
*/
export declare const _decode_PublicKey: $.ASN1Decoder<PublicKey>;
/**
* @summary Encodes a(n) PublicKey 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 PublicKey, encoded as an ASN.1 Element.
*/
export declare const _encode_PublicKey: $.ASN1Encoder<PublicKey>;
//# sourceMappingURL=PublicKey.ta.d.mts.map