Exception: Affine::RangeError
- Inherits:
-
AffineError
- Object
- StandardError
- AffineError
- Affine::RangeError
- 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
-
#initialize(n, mod) ⇒ RangeError
constructor
:nodoc:.
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 |