Exception: Affine::RangeError

Inherits:
AffineError show all
Defined in:
lib/affine/errors.rb

Overview

Raised when an input number is larger than the modulus.

Plaintexts or ciphertexts from external sources might raise these.

Instance Method Summary collapse

Constructor Details

#initialize(n, mod) ⇒ RangeError

:nodoc:



26
27
28
# File 'lib/affine/errors.rb', line 26

def initialize(n, mod) #:nodoc:
  super("Expected input #{n} to be smaller than modulus #{mod}")
end