WebCrypto GOST Class: GostSubjectPublicKeyInfo

GostASN1. GostSubjectPublicKeyInfo

Constructor

new GostSubjectPublicKeyInfo()

Coding methods for Algorithm and GostASN1.SubjectPublicKeyInfo Supported types for GOST algorithms:
 {
     'id-sc-gostR3410-2001': ECDHPublicKey,
     'id-sc-gostR3410-94': DHPublicKey,
     'id-GostR3410-2001': GostR3410PublicKey,
     'id-GostR3410-94': GostR3410PublicKey,
     'id-tc26-gost3410-12-256': GostR3410PublicKey,
     'id-tc26-gost3410-12-512': GostR3410PublicKey
 }
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