Skip to content

Commit 2dec4a4

Browse files
committed
remove Bitwise.^^^/2 from auth scram
1 parent b5e9cf8 commit 2dec4a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mongo/auth/scram.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ defmodule Mongo.Auth.SCRAM do
8888
end
8989

9090
defp xor_keys("", "", result), do: result
91-
defp xor_keys(<<fa, ra::binary>>, <<fb, rb::binary>>, result), do: xor_keys(ra, rb, <<result::binary, fa ^^^ fb>>)
91+
defp xor_keys(<<fa, ra::binary>>, <<fb, rb::binary>>, result), do: xor_keys(ra, rb, <<result::binary, bxor(fa, fb)>>)
9292

9393
defp nonce do
9494
:crypto.strong_rand_bytes(18) |> Base.encode64

0 commit comments

Comments
 (0)