ZipConstants.cs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // ZipConstants.cs
  2. // ------------------------------------------------------------------
  3. //
  4. // Copyright (c) 2006, 2007, 2008, 2009 Dino Chiesa and Microsoft Corporation.
  5. // All rights reserved.
  6. //
  7. // This code module is part of DotNetZip, a zipfile class library.
  8. //
  9. // ------------------------------------------------------------------
  10. //
  11. // This code is licensed under the Microsoft Public License.
  12. // See the file License.txt for the license details.
  13. // More info on: http://dotnetzip.codeplex.com
  14. //
  15. // ------------------------------------------------------------------
  16. //
  17. // last saved (in emacs):
  18. // Time-stamp: <2009-August-27 23:22:32>
  19. //
  20. // ------------------------------------------------------------------
  21. //
  22. // This module defines a few constants that are used in the project.
  23. //
  24. // ------------------------------------------------------------------
  25. using System;
  26. namespace Ionic.Zip
  27. {
  28. static class ZipConstants
  29. {
  30. public const UInt32 PackedToRemovableMedia = 0x30304b50;
  31. public const UInt32 Zip64EndOfCentralDirectoryRecordSignature = 0x06064b50;
  32. public const UInt32 Zip64EndOfCentralDirectoryLocatorSignature = 0x07064b50;
  33. public const UInt32 EndOfCentralDirectorySignature = 0x06054b50;
  34. public const int ZipEntrySignature = 0x04034b50;
  35. public const int ZipEntryDataDescriptorSignature = 0x08074b50;
  36. public const int SplitArchiveSignature = 0x08074b50;
  37. public const int ZipDirEntrySignature = 0x02014b50;
  38. // These are dictated by the Zip Spec.See APPNOTE.txt
  39. public const int AesKeySize = 192; // 128, 192, 256
  40. public const int AesBlockSize = 128; // ???
  41. public const UInt16 AesAlgId128 = 0x660E;
  42. public const UInt16 AesAlgId192 = 0x660F;
  43. public const UInt16 AesAlgId256 = 0x6610;
  44. }
  45. }