summaryrefslogtreecommitdiff
path: root/lib/srp/util.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/srp/util.rb')
-rw-r--r--lib/srp/util.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/srp/util.rb b/lib/srp/util.rb
index 3bed1d3..9f4cb1b 100644
--- a/lib/srp/util.rb
+++ b/lib/srp/util.rb
@@ -70,7 +70,7 @@ d15dc7d7b46154d6b6ce8ef4ad69b15d4982559b297bcf1885c529f566660e5
a = [a].pack('H*')
b = [b].pack('H*')
a.bytes.each_with_index.map do |a_byte, i|
- (a_byte ^ (b[i] || 0)).chr
+ (a_byte ^ (b[i].ord || 0)).chr
end.join
end