Initializes a new instance of the EncryptedData class
Initialization parameters
Encrypted content information
Optional
unprotectedCollection of attributes that are not encrypted
Version number.
If unprotectedAttrs
is present, then the version MUST be 2. If unprotectedAttrs
is absent, then version MUST be 0.
Static
CLASS_Name of the class
Creates a new CMS Encrypted Data content
Returns decrypted raw data
Parameters necessary for encryption
Crypto engine
Creates a new CMS Encrypted Data content
Parameters necessary for encryption
Converts the class to JSON object
JSON object
Static
blockStatic
compareStatic
defaultReturns default values for all class members
Default value
String name for a class member
Static
fromBERCreates PKI object from the raw data
Initialized and filled current class object
ASN.1 encoded raw data
Static
schemaReturns value of pre-defined ASN.1 schema for current class
ASN.1 schema object
Input parameters for the schema
Generated using TypeDoc
Represents the EncryptedData structure described in RFC5652
Example
The following example demonstrates how to create and encrypt CMS Encrypted Data
Example
The following example demonstrates how to decrypt CMS Encrypted Data