WebCrypto GOST Class: PrivateKeyInfo

GostASN1. PrivateKeyInfo

Constructor

new PrivateKeyInfo()

Private-Key Information Syntax PKSC#8
 -- Private-key information syntax

 PrivateKeyInfo ::= SEQUENCE {
     version Version,
     privateKeyAlgorithm AlgorithmIdentifier {{PrivateKeyAlgorithms}},
     privateKey PrivateKey,
     attributes [0] Attributes OPTIONAL }

 Version ::= INTEGER {v1(0)} (v1,...)

 PrivateKey ::= OCTET STRING

 Attributes ::= SET OF Attribute
RFC 5208 references http://tools.ietf.org/html/rfc5208
Properties:
Name Type Description
version number The syntax version number. Should be 0
privateKeyAlgorithm AlgorithmIndentifier Identifies the private-key algorithm
privateKey CryptoOperationData Is an binary data whose contents are the value of the private key.
attributes GostASN1.Attributes A set of attributes
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