@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
29 lines • 1.43 kB
text/typescript
import * as $ from "@wildboar/asn1/functional";
import { CommonKeyAttributes } from "../PKCS-15/CommonKeyAttributes.ta.mjs";
import { CommonSecretKeyAttributes } from "../PKCS-15/CommonSecretKeyAttributes.ta.mjs";
import { PKCS15Object } from "../PKCS-15/PKCS15Object.ta.mjs";
/**
* @summary SecretKeyObject
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* SecretKeyObject {KeyAttributes} ::= PKCS15Object { CommonKeyAttributes, CommonSecretKeyAttributes, KeyAttributes}
* ```
*/
export type SecretKeyObject<KeyAttributes> = PKCS15Object<CommonKeyAttributes, CommonSecretKeyAttributes, KeyAttributes>;
/**
* @summary Returns a function that will decode an ASN.1 element into a(n) SecretKeyObject
* @function
* @param {_Element} el The element being decoded.
* @returns A function that will decode an ASN.1 element.
*/
export declare function _get_decoder_for_SecretKeyObject<KeyAttributes>(_decode_KeyAttributes: $.ASN1Decoder<KeyAttributes>): $.ASN1Decoder<SecretKeyObject<KeyAttributes>>;
/**
* @summary Returns a function that will encode a(n) SecretKeyObject into an ASN.1 Element.
* @function
* @returns A function that will encode a(n) SecretKeyObject as an ASN.1 element.
*/
export declare function _get_encoder_for_SecretKeyObject<KeyAttributes>(_encode_KeyAttributes: $.ASN1Encoder<KeyAttributes>): $.ASN1Encoder<SecretKeyObject<KeyAttributes>>;
//# sourceMappingURL=SecretKeyObject.ta.d.mts.map