@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
34 lines (33 loc) • 1.3 kB
TypeScript
import { ASN1Element as _Element } from "asn1-ts";
import * as $ from "asn1-ts/dist/node/functional";
import { ObjectValue } from "../PKCS-15/ObjectValue.ta";
export { ObjectValue, _get_decoder_for_ObjectValue, _get_encoder_for_ObjectValue, } from "../PKCS-15/ObjectValue.ta";
export { PKCS15_OPAQUE } from "../PKCS-15/PKCS15-OPAQUE.oca";
/**
* @summary ExternalIDO
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* ExternalIDO ::= ObjectValue {PKCS15-OPAQUE.&Type} (CONSTRAINED BY {
* -- All data objects must be defined in
* -- accordance with ISO/IEC 7816-6 --})
* ```
*/
export declare type ExternalIDO = ObjectValue<_Element>;
/**
* @summary Decodes an ASN.1 element into a(n) ExternalIDO
* @function
* @param {_Element} el The element being decoded.
* @returns {ExternalIDO} The decoded data structure.
*/
export declare function _decode_ExternalIDO(el: _Element): ExternalIDO;
/**
* @summary Encodes a(n) ExternalIDO 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 ExternalIDO, encoded as an ASN.1 Element.
*/
export declare function _encode_ExternalIDO(value: ExternalIDO, elGetter: $.ASN1Encoder<ExternalIDO>): _Element;