more prep work for jRuby

This commit is contained in:
Sam
2018-02-26 10:25:58 +11:00
parent 79e0cd7f52
commit b301c9f6c1
2 changed files with 6 additions and 5 deletions

View File

@@ -31,7 +31,7 @@ class Pbkdf2
# fallback xor in case we need it for jruby ... way slower
def self.xor(x, y)
x.bytes.zip(y.bytes).map { |x, y| x ^ y }.pack('c*')
x.bytes.zip(y.bytes).map { |a, b| a ^ b }.pack('c*')
end
def self.prf(hash_function, password, data)