org.bouncycastle.pqc.crypto.cmce.GF Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bcprov-debug-jdk14 Show documentation
Show all versions of bcprov-debug-jdk14 Show documentation
The Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms. This jar contains JCE provider and lightweight API for the Bouncy Castle Cryptography APIs for JDK 1.4.
package org.bouncycastle.pqc.crypto.cmce;
abstract class GF
{
protected final int GFBITS;
protected final int GFMASK;// = ((1 << GFBITS) - 1);
public GF(int gfbits)
{
GFBITS = gfbits;
GFMASK = ((1 << GFBITS) - 1);
}
short gf_iszero(short a)
{
int t = a;
t -= 1;
t >>>= 19;
return (short) t;
}
short gf_add(short left, short right)
{
return (short) (left ^ right);
}
abstract protected short gf_mul(short left, short right);
abstract protected short gf_frac(short den, short num);
abstract protected short gf_inv(short input);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy