Constructor
new AuthenticatedData()
The authenticated-data content type consists of content of any type,
a message authentication code (MAC), and encrypted authentication
keys for one or more recipients. The combination of the MAC and one
encrypted authentication key for a recipient is necessary for that
recipient to verify the integrity of the content. Any type of
content can be integrity protected for an arbitrary number of
recipients.
AuthenticatedData ::= SEQUENCE {
version CMSVersion,
originatorInfo [0] IMPLICIT OriginatorInfo OPTIONAL,
recipientInfos RecipientInfos,
macAlgorithm MessageAuthenticationCodeAlgorithm,
digestAlgorithm [1] DigestAlgorithmIdentifier OPTIONAL,
encapContentInfo EncapsulatedContentInfo,
authAttrs [2] IMPLICIT AuthAttributes OPTIONAL,
mac MessageAuthenticationCode,
unauthAttrs [3] IMPLICIT UnauthAttributes OPTIONAL }
AuthAttributes ::= SET SIZE (1..MAX) OF Attribute
UnauthAttributes ::= SET SIZE (1..MAX) OF Attribute
MessageAuthenticationCode ::= OCTET STRING
Properties:
| Name | Type | Description |
|---|---|---|
version |
number | The syntax version number |
originatorInfo |
GostASN1.Sequence | Optionally provides information about the originator. |
recipientInfos |
Array.<GostASN1.Sequence> | Collection of per-recipient information. |
macAlgorithm |
AlgorithmIdentifier | Identifies the Message Authentication Code algorithm |
digestAlgorithm |
AlgorithmIdentifier | Identifies the Digest algorithm |
encapContentInfo |
GostASN1.Sequence | The content is represented in the type EncapsulatedContentInfo |
authAttrs |
Attributes | The autheniticated attributes |
mac |
CryptoOpertionData | The Message Authentication Code |
unauthAttrs |
Attributes | The unautheniticated attributes |
- Source:
Extends
Methods
-
check()
-
Check the object structure
- Inherited From:
- Source:
-
decode(source)
-
Decode the source to self object
Parameters:
Name Type Description sourceFormatedData Encoded data - Inherited From:
- Source:
-
encode(format) → {FormatedData}
-
Encode the object
Parameters:
Name Type Description formatstring Encoding format 'DER', 'CER' or 'PEM' - Inherited From:
- Source:
Returns:
- Type
- FormatedData