@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
49 lines (48 loc) • 1.44 kB
TypeScript
import { ASN1Element as _Element, BIT_STRING } from "asn1-ts";
import * as $ from "asn1-ts/dist/node/functional";
/**
* @summary CommonObjectFlags
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* CommonObjectFlags ::= BIT STRING { private (0), modifiable (1) }
* ```
*/
export declare type CommonObjectFlags = BIT_STRING;
/**
* @summary CommonObjectFlags_private_
* @constant
*/
export declare const CommonObjectFlags_private_: number;
/**
* @summary private_
* @constant
*/
export declare const private_: number;
/**
* @summary CommonObjectFlags_modifiable
* @constant
*/
export declare const CommonObjectFlags_modifiable: number;
/**
* @summary modifiable
* @constant
*/
export declare const modifiable: number;
/**
* @summary Decodes an ASN.1 element into a(n) CommonObjectFlags
* @function
* @param {_Element} el The element being decoded.
* @returns {CommonObjectFlags} The decoded data structure.
*/
export declare function _decode_CommonObjectFlags(el: _Element): Uint8ClampedArray;
/**
* @summary Encodes a(n) CommonObjectFlags 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 CommonObjectFlags, encoded as an ASN.1 Element.
*/
export declare function _encode_CommonObjectFlags(value: CommonObjectFlags, elGetter: $.ASN1Encoder<CommonObjectFlags>): _Element;