Class EncryptionHeader
Represents Encryption Header
Inheritance
Inherited Members
Namespace: Syncfusion.XlsIO.Implementation.Security
Assembly: Syncfusion.XlsIO.Base.dll
Syntax
public class EncryptionHeader
Constructors
EncryptionHeader()
Default constructor.
Declaration
public EncryptionHeader()
EncryptionHeader(Stream)
Initializes new instance of the header and extracts its data from the stream.
Declaration
public EncryptionHeader(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | Stream to get data from. |
Properties
AlgorithmId
A signed integer that specifies the encryption algorithm.
Declaration
public int AlgorithmId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
AlgorithmIdHash
A signed integer that specifies the hashing algorithm in concert with the Flags.fExternal bit.
Declaration
public int AlgorithmIdHash { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
CSPName
A null-terminated Unicode string that specifies the CSP name.
Declaration
public string CSPName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Flags
An EncryptionHeaderFlags structure that specifies properties of the encryption algorithm used.
Declaration
public int Flags { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
KeySize
An unsigned integer that specifies the number of bits in the encryption key. MUST be a multiple of 8.
Declaration
public int KeySize { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
ProviderType
An implementation specified value which corresponds to constants accepted by the specified CSP. MUST be compatible with the chosen CSP.
Declaration
public int ProviderType { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Reserved1
Undefined and MUST be ignored.
Declaration
public int Reserved1 { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Reserved2
MUST be 0x00000000 and MUST be ignored.
Declaration
public int Reserved2 { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
SizeExtra
Reserved, MUST be 0x00000000.
Declaration
public int SizeExtra { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
Parse(Stream)
Extracts item's data from the specified stream.
Declaration
public void Parse(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | Stream to get data from. |
Serialize(Stream)
Serialize item in the specified stream.
Declaration
public void Serialize(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | Stream to serialize data into. |