https://github.com/openssl/openssl/blob/master/crypto/evp/pbe_scrypt.c#L232-L234 It's currently very difficult to debug if you get a malloc failure from scrypt because nothing is pushed onto the openssl error stack