WebCrypto GOST Class: SignedData

GostASN1. SignedData

Constructor

new SignedData()

The signed-data content type consists of a content of any type and zero or more signature values. Any number of signers in parallel can sign any type of content.

The signed-data content type shall have ASN.1 type SignedData:


     SignedData ::= SEQUENCE {
       version CMSVersion,
       digestAlgorithms DigestAlgorithmIdentifiers,
       encapContentInfo EncapsulatedContentInfo,
       certificates [0] IMPLICIT CertificateSet OPTIONAL,
       crls [1] IMPLICIT RevocationInfoChoices OPTIONAL,
       signerInfos SignerInfos }

     DigestAlgorithmIdentifiers ::= SET OF DigestAlgorithmIdentifier

     SignerInfos ::= SET OF SignerInfo
     
      EncapsulatedContentInfo ::= SEQUENCE {
       eContentType ContentType,
       eContent [0] EXPLICIT OCTET STRING OPTIONAL }
       
Per-signer information is represented in the type SignerInfo:


     SignerInfo ::= SEQUENCE {
       version CMSVersion,
       sid SignerIdentifier,
       digestAlgorithm DigestAlgorithmIdentifier,
       signedAttrs [0] IMPLICIT SignedAttributes OPTIONAL,
       signatureAlgorithm SignatureAlgorithmIdentifier,
       signature SignatureValue,
       unsignedAttrs [1] IMPLICIT UnsignedAttributes OPTIONAL }

     SignerIdentifier ::= CHOICE {
       issuerAndSerialNumber IssuerAndSerialNumber,
       subjectKeyIdentifier [0] SubjectKeyIdentifier }

     SignedAttributes ::= SET SIZE (1..MAX) OF Attribute

     UnsignedAttributes ::= SET SIZE (1..MAX) OF Attribute

    SignatureValue ::= OCTET STRING
    
See also GostASN1.SignedAttributes and GostASN1.UnsignedAttributes
Properties:
Name Type Description
version number The syntax version number
digestAlgorithms Array.<AlgorithmIdentifier> Collection of message digest algorithm identifiers
encapContentInfo GostASN1.Sequence The content is represented in the type EncapsulatedContentInfo
certificates Array.<GostASN1.Certificate> Certificates
crls Array.<GostASN1.CertificateList> Certificates
signerInfos Array.<GostASN1.Sequence> The Signer information
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