Support unrar64.dll
[xy_vsfilter.git] / src / decss / VobDec.h
blob9b3e5cef84711ea582e2c3674910e6ea0172cb4f
1 #pragma once
3 class CVobDec
5 int m_lfsr0, m_lfsr1;
7 void ClockLfsr0Forward(int& lfsr0);
8 void ClockLfsr1Forward(int& lfsr1);
9 void ClockBackward(int& lfsr0, int& lfsr1);
10 void Salt(const BYTE salt[5], int& lfsr0, int& lfsr1);
11 int FindLfsr(const BYTE* crypt, int offset, const BYTE* plain);
13 public:
14 CVobDec();
15 virtual ~CVobDec();
17 bool m_fFoundKey;
19 bool FindKey(BYTE* buff);
20 void Decrypt(BYTE* buff);