Top Description Fields Constructors Methods
org.bouncycastle.math.ec

public Class WTauNafMultiplier

extends AbstractECMultiplier
Class Inheritance
Imports
java.math.BigInteger

Class implementing the WTNAF (Window τ-adic Non-Adjacent Form) algorithm.

Field Summary

Modifier and TypeField and Description
pack-priv static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static ECPoint.AbstractF2m

Returns:

λ * p
multiplyFromWTnaf
(final ECPoint.AbstractF2m
The ECPoint.AbstractF2m to multiply.
p
,
byte[]
The the WTNAF of λ..
u
)

Multiplies a ECPoint.AbstractF2m by an element λ of Z[τ] using the window τ-adic NAF (TNAF) method, given the WTNAF of λ.

protected ECPoint

Returns:

p multiplied by k.
multiplyPositive
(ECPoint
The ECPoint.AbstractF2m to multiply.
point
,
BigInteger
The integer by which to multiply k.
k
)

Implements abstract org.bouncycastle.math.ec.AbstractECMultiplier.multiplyPositive.

Multiplies a ECPoint.AbstractF2m by k using the reduced τ-adic NAF (RTNAF) method.

private ECPoint.AbstractF2m

Returns:

p multiplied by λ.
multiplyWTnaf
(ECPoint.AbstractF2m
The ECPoint.AbstractF2m to multiply.
p
,
ZTauElement
The element λ of Z[τ] of which to compute the [τ]-adic NAF.
lambda
,
byte a, byte mu)

Multiplies a ECPoint.AbstractF2m by an element λ of Z[τ] using the τ-adic NAF (TNAF) method.

Inherited from org.bouncycastle.math.ec.AbstractECMultiplier:
checkResultmultiply

Field Detail

PRECOMP_NAMEback to summary
pack-priv static final String PRECOMP_NAME

Constructor Detail

WTauNafMultiplierback to summary
public WTauNafMultiplier()

Method Detail

multiplyFromWTnafback to summary
private static ECPoint.AbstractF2m multiplyFromWTnaf(final ECPoint.AbstractF2m p, byte[] u)

Multiplies a ECPoint.AbstractF2m by an element λ of Z[τ] using the window τ-adic NAF (TNAF) method, given the WTNAF of λ.

Parameters
p:ECPoint.AbstractF2m

The ECPoint.AbstractF2m to multiply.

u:byte[]

The the WTNAF of λ..

Returns:ECPoint.AbstractF2m

λ * p

multiplyPositiveback to summary
protected ECPoint multiplyPositive(ECPoint point, BigInteger k)

Implements abstract org.bouncycastle.math.ec.AbstractECMultiplier.multiplyPositive.

Multiplies a ECPoint.AbstractF2m by k using the reduced τ-adic NAF (RTNAF) method.

Parameters
point:ECPoint

The ECPoint.AbstractF2m to multiply.

k:BigInteger

The integer by which to multiply k.

Returns:ECPoint

p multiplied by k.

multiplyWTnafback to summary
private ECPoint.AbstractF2m multiplyWTnaf(ECPoint.AbstractF2m p, ZTauElement lambda, byte a, byte mu)

Multiplies a ECPoint.AbstractF2m by an element λ of Z[τ] using the τ-adic NAF (TNAF) method.

Parameters
p:ECPoint.AbstractF2m

The ECPoint.AbstractF2m to multiply.

lambda:ZTauElement

The element λ of Z[τ] of which to compute the [τ]-adic NAF.

Returns:ECPoint.AbstractF2m

p multiplied by λ.