escrypt: use functions from JtR memory.c