| 281 | |
| 282 | |
| 283 | void ComprDataIO::SetEncryption(bool Encrypt,CRYPT_METHOD Method, |
| 284 | SecPassword *Password,const byte *Salt,const byte *InitV, |
| 285 | uint Lg2Cnt,byte *HashKey,byte *PswCheck) |
| 286 | { |
| 287 | #ifndef RAR_NOCRYPT |
| 288 | if (Encrypt) |
| 289 | Encryption=Crypt->SetCryptKeys(true,Method,Password,Salt,InitV,Lg2Cnt,HashKey,PswCheck); |
| 290 | else |
| 291 | Decryption=Decrypt->SetCryptKeys(false,Method,Password,Salt,InitV,Lg2Cnt,HashKey,PswCheck); |
| 292 | #endif |
| 293 | } |
| 294 | |
| 295 | |
| 296 | #if !defined(SFX_MODULE) && !defined(RAR_NOCRYPT) |
no test coverage detected