ok, not faulting on the hash anymore. just need to figure out what's going on with the length property in the openpgp encrypt function.