UNPKG

@wildboar/pkcs

Version:
29 lines (28 loc) 951 B
import { ASN1Element as _Element, OCTET_STRING } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; /** * @summary RandomNonce * @description * * ### ASN.1 Definition: * * ```asn1 * RandomNonce ::= OCTET STRING (SIZE(4..MAX)) * ``` */ export declare type RandomNonce = OCTET_STRING; /** * @summary Decodes an ASN.1 element into a(n) RandomNonce * @function * @param {_Element} el The element being decoded. * @returns {RandomNonce} The decoded data structure. */ export declare function _decode_RandomNonce(el: _Element): Uint8Array; /** * @summary Encodes a(n) RandomNonce 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 RandomNonce, encoded as an ASN.1 Element. */ export declare function _encode_RandomNonce(value: RandomNonce, elGetter: $.ASN1Encoder<RandomNonce>): _Element;