public class SqrtRatio
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
SqrtRatio(boolean isQR,
java.math.BigInteger ratio)
Constructs an instance of SqrtRatio representing the result of a square root ratio computation.
|
| Modifier and Type | Method and Description |
|---|---|
java.math.BigInteger |
getRatio()
Retrieves the ratio value resulting from the square root ratio computation.
|
boolean |
isQR()
Checks whether the computed value is a quadratic residue (QR) modulo a specific field.
|
protected SqrtRatio(boolean isQR,
java.math.BigInteger ratio)
isQR - A boolean flag indicating whether the computed value is a quadratic residue (QR)
modulo a specific field. This helps determine if the ratio under consideration has a valid square
root.ratio - The ratio value resulting from the square root ratio computation.public boolean isQR()
public java.math.BigInteger getRatio()