@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
104 lines (103 loc) • 3.27 kB
TypeScript
import { ASN1Element as _Element } from "asn1-ts";
import * as $ from "asn1-ts/dist/node/functional";
import { AlgorithmIdentifier } from "../PKCS5v2-1/AlgorithmIdentifier.ta";
export { AlgorithmIdentifier, _decode_AlgorithmIdentifier, _encode_AlgorithmIdentifier, } from "../PKCS5v2-1/AlgorithmIdentifier.ta";
/**
* @summary PBMAC1_params
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* PBMAC1-params ::= SEQUENCE {
* keyDerivationFunc AlgorithmIdentifier {{PBMAC1-KDFs}},
* messageAuthScheme AlgorithmIdentifier {{PBMAC1-MACs}}
* }
* ```
*
* @class
*/
export declare class PBMAC1_params {
/**
* @summary `keyDerivationFunc`.
* @public
* @readonly
*/
readonly keyDerivationFunc: AlgorithmIdentifier;
/**
* @summary `messageAuthScheme`.
* @public
* @readonly
*/
readonly messageAuthScheme: AlgorithmIdentifier;
constructor(
/**
* @summary `keyDerivationFunc`.
* @public
* @readonly
*/
keyDerivationFunc: AlgorithmIdentifier,
/**
* @summary `messageAuthScheme`.
* @public
* @readonly
*/
messageAuthScheme: AlgorithmIdentifier);
/**
* @summary Restructures an object into a PBMAC1_params
* @description
*
* This takes an `object` and converts it to a `PBMAC1_params`.
*
* @public
* @static
* @method
* @param {Object} _o An object having all of the keys and values of a `PBMAC1_params`.
* @returns {PBMAC1_params}
*/
static _from_object(_o: {
[_K in keyof PBMAC1_params]: PBMAC1_params[_K];
}): PBMAC1_params;
}
/**
* @summary The Leading Root Component Types of PBMAC1_params
* @description
*
* This is an array of `ComponentSpec`s that define how to decode the leading root component type list of a SET or SEQUENCE.
*
* @constant
*/
export declare const _root_component_type_list_1_spec_for_PBMAC1_params: $.ComponentSpec[];
/**
* @summary The Trailing Root Component Types of PBMAC1_params
* @description
*
* This is an array of `ComponentSpec`s that define how to decode the trailing root component type list of a SET or SEQUENCE.
*
* @constant
*/
export declare const _root_component_type_list_2_spec_for_PBMAC1_params: $.ComponentSpec[];
/**
* @summary The Extension Addition Component Types of PBMAC1_params
* @description
*
* This is an array of `ComponentSpec`s that define how to decode the extension addition component type list of a SET or SEQUENCE.
*
* @constant
*/
export declare const _extension_additions_list_spec_for_PBMAC1_params: $.ComponentSpec[];
/**
* @summary Decodes an ASN.1 element into a(n) PBMAC1_params
* @function
* @param {_Element} el The element being decoded.
* @returns {PBMAC1_params} The decoded data structure.
*/
export declare function _decode_PBMAC1_params(el: _Element): PBMAC1_params;
/**
* @summary Encodes a(n) PBMAC1_params 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 PBMAC1_params, encoded as an ASN.1 Element.
*/
export declare function _encode_PBMAC1_params(value: PBMAC1_params, elGetter: $.ASN1Encoder<PBMAC1_params>): _Element;