Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Resultant.java « polynomial « ntru « math « pqc « bouncycastle « org « java « main « src « core - gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ec585779c44d339ba2c8fa5d6dbf4d8005aa886f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package org.bouncycastle.pqc.math.ntru.polynomial;

import java.math.BigInteger;

/**
 * Contains a resultant and a polynomial <code>rho</code> such that
 * <code>res = rho*this + t*(x^n-1) for some integer t</code>.
 *
 * @see IntegerPolynomial#resultant()
 * @see IntegerPolynomial#resultant(int)
 */
public class Resultant
{
    /**
     * A polynomial such that <code>res = rho*this + t*(x^n-1) for some integer t</code>
     */
    public BigIntPolynomial rho;
    /**
     * Resultant of a polynomial with <code>x^n-1</code>
     */
    public BigInteger res;

    Resultant(BigIntPolynomial rho, BigInteger res)
    {
        this.rho = rho;
        this.res = res;
    }
}