WebCrypto GOST Class: GostPrivateKeyInfo

GostASN1. GostPrivateKeyInfo

Constructor

new GostPrivateKeyInfo()

Coding methods for Algorithm and GostASN1.PrivateKeyInfo Supported types for GOST algorithms:
 {
     'id-sc-gostR3410-2001': DHPrivateKey,
     'id-sc-gostR3410-94': DHPrivateKey,
     'id-GostR3410-2001': GostR3410PrivateKey,
     'id-GostR3410-94': GostR3410PrivateKey,
     'id-tc26-gost3410-12-256': GostR3410PrivateKey,
     'id-tc26-gost3410-12-512': GostR3410PrivateKey
 }
Source:

Extends

Methods

check()

Check the object structure
Inherited From:
Source:

decode(source)

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

encode(format) → {FormatedData}

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