Key derivation function primarily used for Scrypt