Top Constructors Methods
org.bouncycastle.pqc.crypto.newhope

pack-priv Class Poly

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

Constructor Summary

AccessConstructor and Description
pack-priv
Poly()

Method Summary

Modifier and TypeMethod and Description
pack-priv static void
add(short[] x, short[] y, short[] z)

pack-priv static void
fromBytes(short[] r, byte[] a)

pack-priv static void
fromNTT(short[] r)

pack-priv static void
getNoise(short[] r, byte[] seed, byte nonce)

private static short
normalize(short x)

/ return Integer.bitCount(n);

pack-priv static void
pointWise(short[] x, short[] y, short[] z)

pack-priv static void
toBytes(byte[] r, short[] p)

pack-priv static void
toNTT(short[] r)

pack-priv static void
uniform(short[] a, byte[] seed)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Polyback to summary
pack-priv Poly()

Method Detail

addback to summary
pack-priv static void add(short[] x, short[] y, short[] z)
fromBytesback to summary
pack-priv static void fromBytes(short[] r, byte[] a)
fromNTTback to summary
pack-priv static void fromNTT(short[] r)
getNoiseback to summary
pack-priv static void getNoise(short[] r, byte[] seed, byte nonce)
normalizeback to summary
private static short normalize(short x)

/ return Integer.bitCount(n);

pointWiseback to summary
pack-priv static void pointWise(short[] x, short[] y, short[] z)
toBytesback to summary
pack-priv static void toBytes(byte[] r, short[] p)
toNTTback to summary
pack-priv static void toNTT(short[] r)
uniformback to summary
pack-priv static void uniform(short[] a, byte[] seed)