Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static const unsigned short hash_constant (0x7a0b);
- Sha1Hash newone;
- newone.UpdateBigNumbers (&m_sessionkey, NULL);
- newone.UpdateData ((uint8*)&hash_constant, sizeof (hash_constant));
- newone.Finalize();
- const unsigned char* hashed_session_key (newone.GetDigest());
- const int size = sizeof(hashed_session_key);
- uint8 store[size];
- for (int i = 0; i < size; i++)
- {
- store[i] ^= hashed_session_key[i];
- }
- BigNumber result;
- result.SetBinary(store, size);
- Log.Debug("Auth", "Result: \n %s", result);
Advertisement
Add Comment
Please, Sign In to add comment