scrypt key derivation functions for R