Package | Description |
---|---|
org.spongycastle.math.ec |
Math support for Elliptic Curve.
|
Modifier and Type | Field and Description |
---|---|
static ZTauElement[] |
Tnaf.alpha0
The
αu 's for a=0 as an array
of ZTauElement s. |
static ZTauElement[] |
Tnaf.alpha1
The
αu 's for a=1 as an array
of ZTauElement s. |
Modifier and Type | Method and Description |
---|---|
static ZTauElement |
Tnaf.partModReduction(java.math.BigInteger k,
int m,
byte a,
java.math.BigInteger[] s,
byte mu,
byte c)
Partial modular reduction modulo
(τm - 1)/(τ - 1) . |
static ZTauElement |
Tnaf.round(SimpleBigDecimal lambda0,
SimpleBigDecimal lambda1,
byte mu)
Rounds an element
λ of R[τ]
to an element of Z[τ] , such that their difference
has minimal norm. |
Modifier and Type | Method and Description |
---|---|
static ECPoint.F2m |
Tnaf.multiplyTnaf(ECPoint.F2m p,
ZTauElement lambda)
|
private ECPoint.F2m |
WTauNafMultiplier.multiplyWTnaf(ECPoint.F2m p,
ZTauElement lambda,
PreCompInfo preCompInfo,
byte a,
byte mu)
|
static java.math.BigInteger |
Tnaf.norm(byte mu,
ZTauElement lambda)
Computes the norm of an element
λ of
Z[τ] . |
static byte[] |
Tnaf.tauAdicNaf(byte mu,
ZTauElement lambda)
Computes the
τ -adic NAF (non-adjacent form) of an
element λ of Z[τ] . |
static byte[] |
Tnaf.tauAdicWNaf(byte mu,
ZTauElement lambda,
byte width,
java.math.BigInteger pow2w,
java.math.BigInteger tw,
ZTauElement[] alpha)
Computes the
[τ] -adic window NAF of an element
λ of Z[τ] . |
static byte[] |
Tnaf.tauAdicWNaf(byte mu,
ZTauElement lambda,
byte width,
java.math.BigInteger pow2w,
java.math.BigInteger tw,
ZTauElement[] alpha)
Computes the
[τ] -adic window NAF of an element
λ of Z[τ] . |