MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / SetEncryption

Method SetEncryption

Libraries/unrar/rdwrfn.cpp:283–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281
282
283void 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)

Callers 2

ReadSubDataMethod · 0.80
ExtractCurrentFileMethod · 0.80

Calls 1

SetCryptKeysMethod · 0.80

Tested by

no test coverage detected