- fixed to use proper hash algorithm for 32 byte key