@wildboar/pc
Version:
Trusted Computing Group Platform Certificate ASN.1 data structures in TypeScript
32 lines (31 loc) • 1.22 kB
TypeScript
import { OBJECT_IDENTIFIER, ASN1Element as _Element, ObjectIdentifier as _OID } from "asn1-ts";
import * as $ from "asn1-ts/dist/node/functional";
/**
* @summary ComponentClassRegistry
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* ComponentClassRegistry ::= OBJECT IDENTIFIER (
* tcg-registry-componentClass-tcg
* | tcg-registry-componentClass-ietf
* | tcg-registry-componentClass-dmtf )
* ```
*/
export declare type ComponentClassRegistry = OBJECT_IDENTIFIER;
/**
* @summary Decodes an ASN.1 element into a(n) ComponentClassRegistry
* @function
* @param {_Element} el The element being decoded.
* @returns {ComponentClassRegistry} The decoded data structure.
*/
export declare function _decode_ComponentClassRegistry(el: _Element): _OID;
/**
* @summary Encodes a(n) ComponentClassRegistry 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 ComponentClassRegistry, encoded as an ASN.1 Element.
*/
export declare function _encode_ComponentClassRegistry(value: ComponentClassRegistry, elGetter: $.ASN1Encoder<ComponentClassRegistry>): _Element;