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

public Class BigIntEuclidean

extends Object
Class Inheritance
Imports
java.math.BigInteger

Extended Euclidean Algorithm in BigIntegers

Field Summary

Modifier and TypeField and Description
public BigInteger
public BigInteger
x

public BigInteger
y

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static BigIntEuclidean

Returns:

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

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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

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

Constructor Detail

BigIntEuclideanback to summary
private BigIntEuclidean()

Method Detail

calculateback to summary
public static BigIntEuclidean calculate(BigInteger a, BigInteger b)

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

Returns:BigIntEuclidean

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