Skip to content
Snippets Groups Projects
Commit e0e61f6f authored by da1l6's avatar da1l6
Browse files

Fix hash head not correctly calculated on key slot init.

The buffer that was used to calculate it did not contain the current salt.
Instead of creating a new buffer, we now use the sha1 block functions directly
and hash key and salt in two calls.

Additionally a ctx2hashhead function is added to convert only the first 4 bytes
of the hash instead of converting all 20 bytes and throwing 16 bytes away afterwards.
parent 3bdf8a8d
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment