mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-09-23 15:24:56 +00:00
Libraries
This change looks dramatic, but it's just separating out the already-split namespaces into separate top-level folders. In theory, every single one could be built into their own Nuget package. `SabreTools.Serialization` still builds the normal Nuget package that is used by all other projects and includes all namespaces.
This commit is contained in:
44
SabreTools.Data.Models/PKZIP/StrongEncryptionHeader.cs
Normal file
44
SabreTools.Data.Models/PKZIP/StrongEncryptionHeader.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
namespace SabreTools.Data.Models.PKZIP
|
||||
{
|
||||
/// <summary>
|
||||
/// See the section describing the Strong Encryption Specification
|
||||
/// for details. Refer to the section in this document entitled
|
||||
/// "Incorporating PKWARE Proprietary Technology into Your Product"
|
||||
/// for more information.
|
||||
/// </summary>
|
||||
/// <remarks>Header ID = 0x0017</remarks>
|
||||
/// <see href="https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT"/>
|
||||
public class StrongEncryptionHeader : ExtensibleDataField
|
||||
{
|
||||
/// <summary>
|
||||
/// Format definition for this record
|
||||
/// </summary>
|
||||
public ushort Format { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Encryption algorithm identifier
|
||||
/// </summary>
|
||||
public ushort AlgID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Bit length of encryption key
|
||||
/// </summary>
|
||||
public ushort Bitlen { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Processing flags
|
||||
/// </summary>
|
||||
public ushort Flags { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Certificate decryption extra field data
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Refer to the explanation for CertData
|
||||
/// in the section describing the
|
||||
/// Certificate Processing Method under
|
||||
/// the Strong Encryption Specification
|
||||
/// </remarks>
|
||||
public byte[] CertData { get; set; } = [];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user