| 69 | //----------------------------------------------------------------------------- |
| 70 | |
| 71 | void 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 | |
| 86 | bool ZipCryptRStream::attachStream(Stream* io_pSlaveStream) |
| 87 | { |