Top Fields Constructors Methods
org.bouncycastle.pqc.crypto.saber

pack-priv Class Poly

extends Object
Class Inheritance
Imports
org.bouncycastle.crypto.Xof, org.bouncycastle.crypto.digests.SHAKEDigest

Field Summary

Modifier and TypeField and Description
private final SABEREngine
private static final int
private final int
private final int
private final int
private final int
private final int
private static int
private final Utils

Constructor Summary

AccessConstructor and Description
public
Poly(SABEREngine engine)

Method Summary

Modifier and TypeMethod and Description
private void
cbd(short[] s, byte[] buf, int offset)

public void
GenMatrix(short[][][] A, byte[] seed)

public void
GenSecret(short[][] s, byte[] seed)

public void
InnerProd(short[][] b, short[][] s, short[] res)

private void
karatsuba_simple(int[] a_1, int[] b_1, int[] result_final)

private long
load_littleendian(byte[] x, int offset, int bytes)

public void
MatrixVectorMul(short[][][] A, short[][] s, short[][] res, int transpose)

private short
OVERFLOWING_MUL(int x, int y)

private void
poly_mul_acc(short[] a, short[] b, short[] res)

private void
toom_cook_4way(short[] a1, short[] b1, short[] result)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

engineback to summary
private final SABEREngine engine
KARATSUBA_Nback to summary
private static final int KARATSUBA_N
N_RESback to summary
private final int N_RES
N_SBback to summary
private final int N_SB
N_SB_RESback to summary
private final int N_SB_RES
SABER_Lback to summary
private final int SABER_L
SABER_Nback to summary
private final int SABER_N
SCHB_Nback to summary
private static int SCHB_N
utilsback to summary
private final Utils utils

Constructor Detail

Polyback to summary
public Poly(SABEREngine engine)

Method Detail

cbdback to summary
private void cbd(short[] s, byte[] buf, int offset)
GenMatrixback to summary
public void GenMatrix(short[][][] A, byte[] seed)
GenSecretback to summary
public void GenSecret(short[][] s, byte[] seed)
InnerProdback to summary
public void InnerProd(short[][] b, short[][] s, short[] res)
karatsuba_simpleback to summary
private void karatsuba_simple(int[] a_1, int[] b_1, int[] result_final)
load_littleendianback to summary
private long load_littleendian(byte[] x, int offset, int bytes)
MatrixVectorMulback to summary
public void MatrixVectorMul(short[][][] A, short[][] s, short[][] res, int transpose)
OVERFLOWING_MULback to summary
private short OVERFLOWING_MUL(int x, int y)
poly_mul_accback to summary
private void poly_mul_acc(short[] a, short[] b, short[] res)
toom_cook_4wayback to summary
private void toom_cook_4way(short[] a1, short[] b1, short[] result)