@wildboar/pc
Version:
Trusted Computing Group Platform Certificate ASN.1 data structures in TypeScript
100 lines (99 loc) • 2.45 kB
TypeScript
import { ASN1Element as _Element } from "asn1-ts";
import * as $ from "asn1-ts/dist/node/functional";
/**
* @summary StrengthOfFunction
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* StrengthOfFunction ::= ENUMERATED {
* basic (0),
* medium (1),
* high (2) }
* ```@enum {number}
*/
export declare enum _enum_for_StrengthOfFunction {
basic = 0,
medium = 1,
high = 2
}
/**
* @summary StrengthOfFunction
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* StrengthOfFunction ::= ENUMERATED {
* basic (0),
* medium (1),
* high (2) }
* ```@enum {number}
*/
export declare type StrengthOfFunction = _enum_for_StrengthOfFunction;
/**
* @summary StrengthOfFunction
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* StrengthOfFunction ::= ENUMERATED {
* basic (0),
* medium (1),
* high (2) }
* ```@enum {number}
*/
export declare const StrengthOfFunction: typeof _enum_for_StrengthOfFunction;
/**
* @summary StrengthOfFunction_basic
* @constant
* @type {number}
*/
export declare const StrengthOfFunction_basic: StrengthOfFunction;
/**
* @summary basic
* @constant
* @type {number}
*/
export declare const basic: StrengthOfFunction;
/**
* @summary StrengthOfFunction_medium
* @constant
* @type {number}
*/
export declare const StrengthOfFunction_medium: StrengthOfFunction;
/**
* @summary medium
* @constant
* @type {number}
*/
export declare const medium: StrengthOfFunction;
/**
* @summary StrengthOfFunction_high
* @constant
* @type {number}
*/
export declare const StrengthOfFunction_high: StrengthOfFunction;
/**
* @summary high
* @constant
* @type {number}
*/
export declare const high: StrengthOfFunction;
/**
* @summary Decodes an ASN.1 element into a(n) StrengthOfFunction
* @function
* @param {_Element} el The element being decoded.
* @returns {StrengthOfFunction} The decoded data structure.
*/
export declare function _decode_StrengthOfFunction(el: _Element): _enum_for_StrengthOfFunction;
/**
* @summary Encodes a(n) StrengthOfFunction 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 StrengthOfFunction, encoded as an ASN.1 Element.
*/
export declare function _encode_StrengthOfFunction(value: StrengthOfFunction, elGetter: $.ASN1Encoder<StrengthOfFunction>): _Element;