WebCrypto GOST Class: DigestedData

GostASN1. DigestedData

Constructor

new DigestedData()

The digested-data content type consists of content of any type and a message digest of the content.

Typically, the digested-data content type is used to provide content integrity, and the result generally becomes an input to the enveloped-data content type.


     DigestedData ::= SEQUENCE {
       version CMSVersion,
       digestAlgorithm DigestAlgorithmIdentifier,
       encapContentInfo EncapsulatedContentInfo,
       digest Digest }

     Digest ::= OCTET STRING
     
Properties:
Name Type Description
version number The syntax version number
digestAlgorithm AlgorithmIdentifier Message digest algorithm identifier
encapContentInfo GostASN1.Sequence The content is represented in the type EncapsulatedContentInfo
digest CryptoOperationData The degist
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