lib/affine/cipher.rb in affine-0.2.2 vs lib/affine/cipher.rb in affine-0.2.3
- old
+ new
@@ -39,10 +39,10 @@
# Decrypt one +ciphertext+ into a +plaintext+.
#
# == Argument
# [+ciphertext+] a single positive integer between 0 and the +modulus+
- # for the cipher
+ # for the cipher
def decipher(ciphertext)
raise RangeError.new(ciphertext, @modulus) if ciphertext > @modulus
(@a_inv * (ciphertext - @b_key)) % @modulus
end