de.flexiprovider.common.exceptions
Class NoQuadraticResidueException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--de.flexiprovider.common.exceptions.ECException
                          |
                          +--de.flexiprovider.common.exceptions.NoQuadraticResidueException
All Implemented Interfaces:
java.io.Serializable

public class NoQuadraticResidueException
extends ECException

This exception is thrown, if the square root modulo a prime of a nonquadratic residue is to be calculated.

Author:
Birgit Henhapl
See Also:
Point, PointGFP, Serialized Form

Constructor Summary
NoQuadraticResidueException()
          Default constructor.
NoQuadraticResidueException(FlexiBigInt a, FlexiBigInt p)
          Constructs NoQuadraticResidueException with the message:
NoQuadraticResidueException:
a = a is not a quadratic residue mod p = p.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NoQuadraticResidueException

public NoQuadraticResidueException()
Default constructor. Calls super-constructor with no message.

NoQuadraticResidueException

public NoQuadraticResidueException(FlexiBigInt a,
                                   FlexiBigInt p)
Constructs NoQuadraticResidueException with the message:
NoQuadraticResidueException:
a = a is not a quadratic residue mod p = p.
Parameters:
a - the value to calculate the square root from
p - characteristic of the underlying field