mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-10 06:07:07 -06:00
4.44 beta
This commit is contained in:
committed by
Kornel Lesiński
parent
804edc5756
commit
d9666cf046
26
CPP/7zip/Crypto/Zip/ZipCrypto.h
Executable file
26
CPP/7zip/Crypto/Zip/ZipCrypto.h
Executable file
@@ -0,0 +1,26 @@
|
||||
// Crypto/ZipCrypto.h
|
||||
|
||||
#ifndef __CRYPTO_ZIP_CRYPTO_H
|
||||
#define __CRYPTO_ZIP_CRYPTO_H
|
||||
|
||||
namespace NCrypto {
|
||||
namespace NZip {
|
||||
|
||||
const int kHeaderSize = 12;
|
||||
class CCipher
|
||||
{
|
||||
UInt32 Keys[3];
|
||||
void UpdateKeys(Byte b);
|
||||
Byte DecryptByteSpec();
|
||||
public:
|
||||
void SetPassword(const Byte *password, UInt32 passwordLength);
|
||||
Byte DecryptByte(Byte encryptedByte);
|
||||
Byte EncryptByte(Byte b);
|
||||
void DecryptHeader(Byte *buffer);
|
||||
void EncryptHeader(Byte *buffer);
|
||||
|
||||
};
|
||||
|
||||
}}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user