WebCrypto GOST Class: Sequence

GostASN1. Sequence

Constructor

new Sequence(object, check)

Create SEQUENCE ASN.1 metaclass
Parameters:
Name Type Description
object Object | FormatedData Initialization object
check boolean Check structure after initialization
Source:

Methods

(static) decode(source) → {GostASN1.Sequence}

Decode source and create object
Parameters:
Name Type Description
source FormatedData Encoded data
Source:
Returns:
Type
GostASN1.Sequence

(static) encode(object, format) → {FormatedData}

Encode data values with creating object
Parameters:
Name Type Description
object Object Javascript object to encoding
format string Encoding format 'DER', 'CER' or 'PEM'
Source:
Returns:
Type
FormatedData

check()

Check the object structure
Source:

decode(source)

Decode the source to self object
Parameters:
Name Type Description
source FormatedData Encoded data
Source:

encode(format) → {FormatedData}

Encode the object
Parameters:
Name Type Description
format string Encoding format 'DER', 'CER' or 'PEM'
Source:
Returns:
Type
FormatedData