@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
29 lines (28 loc) • 1.09 kB
TypeScript
import { ASN1Element as _Element, OCTET_STRING } from "asn1-ts";
import * as $ from "asn1-ts/dist/node/functional";
/**
* @summary MessageAuthenticationCode
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* MessageAuthenticationCode ::= OCTET STRING
* ```
*/
export declare type MessageAuthenticationCode = OCTET_STRING;
/**
* @summary Decodes an ASN.1 element into a(n) MessageAuthenticationCode
* @function
* @param {_Element} el The element being decoded.
* @returns {MessageAuthenticationCode} The decoded data structure.
*/
export declare function _decode_MessageAuthenticationCode(el: _Element): Uint8Array;
/**
* @summary Encodes a(n) MessageAuthenticationCode 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 MessageAuthenticationCode, encoded as an ASN.1 Element.
*/
export declare function _encode_MessageAuthenticationCode(value: MessageAuthenticationCode, elGetter: $.ASN1Encoder<MessageAuthenticationCode>): _Element;