Add utility functions for scrypt (untested)