Hash Check Code Work

I don't know if this code _fixes_ anything... However, the hash-check should be invisible to all the outside code.

(every reference of the derive key function now checks for the hash-check, generates it (if possible),  else will show a warning and continue without).