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

Method SetKey13

Libraries/unrar/crypt1.cpp:3–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1extern uint CRCTab[256];
2
3void CryptData::SetKey13(const char *Password)
4{
5 Key13[0]=Key13[1]=Key13[2]=0;
6 for (size_t I=0;Password[I]!=0;I++)
7 {
8 byte P=Password[I];
9 Key13[0]+=P;
10 Key13[1]^=P;
11 Key13[2]+=P;
12 Key13[2]=(byte)rotls(Key13[2],1,8);
13 }
14}
15
16
17void CryptData::SetKey15(const char *Password)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected