MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / setPassword

Method setPassword

Engine/source/core/util/zip/zipCryptStream.cpp:71–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69//-----------------------------------------------------------------------------
70
71void ZipCryptRStream::setPassword(const char *password)
72{
73 mKeys[0] = 305419896;
74 mKeys[1] = 591751049;
75 mKeys[2] = 878082192;
76
77 mPassword = password;
78 const char *pPtr = password;
79 while(*pPtr)
80 {
81 updateKeys(*pPtr);
82 pPtr++;
83 }
84}
85
86bool ZipCryptRStream::attachStream(Stream* io_pSlaveStream)
87{

Callers 1

openFileForReadMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected