WebCrypto GOST Class: ContentInfo

GostASN1. ContentInfo

Constructor

new ContentInfo()

Cryptographic Message Syntax
The CMS associates a content type identifier with a content. The syntax MUST have ASN.1 type ContentInfo:

 ContentInfo ::= SEQUENCE {
   contentType ContentType,
   content [0] EXPLICIT ANY DEFINED BY contentType }

 ContentType ::= OBJECT IDENTIFIER
 
The fields of ContentInfo have the following meanings:
  • contentType indicates the type of the associated content. It is an object identifier; it is a unique string of integers assigned by an authority that defines the content type.
  • content is the associated content. The type of content can be determined uniquely by contentType. Content types for data, signed-data, enveloped-data, digested-data, encrypted-data, and authenticated-data are defined in this document. If additional content types are defined in other documents, the ASN.1 type defined SHOULD NOT be a CHOICE type.
RFC 5652 references http://tools.ietf.org/html/rfc5652
Properties:
Name Type Description
contentType string The content type identifier
content GostASN1.Sequence | CryptoOperationData The content
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