Top Description Fields Constructors Methods
org.bouncycastle.pqc.legacy.math.ntru.euclid

public Class IntEuclidean

extends Object
Class Inheritance

Extended Euclidean Algorithm in ints

Field Summary

Modifier and TypeField and Description
public int
public int
x

public int
y

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static IntEuclidean

Returns:

a IntEuclidean object that contains the result in the variables x, y, and gcd
calculate
(int a, int b)

Runs the EEA on two ints Implemented from pseudocode on Wikipedia.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

gcdback to summary
public int gcd
xback to summary
public int x
yback to summary
public int y

Constructor Detail

IntEuclideanback to summary
private IntEuclidean()

Method Detail

calculateback to summary
public static IntEuclidean calculate(int a, int b)

Runs the EEA on two ints
Implemented from pseudocode on Wikipedia.

Returns:IntEuclidean

a IntEuclidean object that contains the result in the variables x, y, and gcd