Modifier and Type | Interface and Description |
---|---|
interface |
Field<E extends Element>
Represents an algebraic structure.
|
interface |
FieldOver<F extends Field,E extends Element>
This interface represents an algebraic structure defined
over another.
|
interface |
Point<E extends Element>
This interface represents an element with two coordinates.
|
interface |
Polynomial<E extends Element>
This element represents a polynomial through its coefficients.
|
interface |
Vector<E extends Element>
This element represents a vector through its coordinates.
|
Modifier and Type | Interface and Description |
---|---|
interface |
Point<E extends Element>
This interface represents an element with two coordinates.
|
interface |
Polynomial<E extends Element>
This element represents a polynomial through its coefficients.
|
interface |
Vector<E extends Element>
This element represents a vector through its coordinates.
|
Modifier and Type | Method and Description |
---|---|
Element |
Element.add(Element element)
Sets this = this + element.
|
Element[] |
Field.add(Element[] a,
Element[] b)
Computes the component-wise addition between a and b.
|
Element |
Element.div(Element element)
Sets this = this / element
|
Element |
Element.duplicate()
Returns a copy of this element.
|
Element |
Element.getImmutable()
Returns an immutable copy of this element if the
element is not already immutable.
|
Element |
Element.halve()
Sets this = this / 2.
|
Element |
Element.invert()
Sets this to the inverse of itself.
|
Element |
Element.mul(BigInteger n)
Sets this = this * n, that is this + this + ...
|
Element |
Element.mul(Element element)
Sets this = this * element.
|
Element |
Element.mul(int z)
Sets this = this * z, that is this + this + ...
|
Element |
Element.mulZn(Element z)
Sets this = this * z, that is this + this + … + this where there are z this's and
z is an element of a ring Z_N for some N.
|
Element |
Element.negate()
Set this = -this.
|
Element |
PairingPreProcessing.pairing(Element in2)
Compute the pairing where the second argument is in2.
|
Element |
Pairing.pairing(Element[] in1,
Element[] in2)
Computes the product of pairings, that is
'e'('in1'[0], 'in2'[0]) ...
|
Element |
Pairing.pairing(Element in1,
Element in2)
Applies the bilinear map.
|
Element |
ElementPow.pow(BigInteger n)
Compute the power to n.
|
Element |
Element.pow(BigInteger n)
Sets this = this^n.
|
Element |
ElementPowPreProcessing.pow(BigInteger n)
Compute the power to n using the pre-processed information.
|
Element |
ElementPow.powZn(Element n)
Compute the power to n, where n is an element of a ring Z_N for some N.
|
Element |
Element.powZn(Element n)
Sets this = this^n, where n is an element of a ring Z_N for some N
(typically the order of the algebraic structure n lies in).
|
Element |
ElementPowPreProcessing.powZn(Element n)
Compute the power to n, where n is an element of a ring Z_N for some N,
using the pre-processed information,
|
Element |
Element.set(BigInteger value)
Sets this element to value.
|
Element |
Element.set(Element value)
Sets this element to value.
|
Element |
Element.set(int value)
Sets this element to value.
|
Element |
Element.setFromHash(byte[] source,
int offset,
int length)
Sets this element deterministically from the length bytes stored in the source parameter starting from the passed offset.
|
Element |
Element.setToOne()
Sets this element to one.
|
Element |
Element.setToRandom()
If this element lies in a finite algebraic structure, assigns a uniformly random element to it.
|
Element |
Element.setToZero()
Sets this element to zero.
|
Element |
Element.sqrt()
Sets this = sqrt(this).
|
Element |
Element.square()
Se this = this^2.
|
Element |
Element.sub(Element element)
Sets this = this - element.
|
Element |
Element.twice()
Sets this = this + this.
|
Element[] |
Field.twice(Element[] elements)
Computes the component-wise twice.
|
Modifier and Type | Method and Description |
---|---|
Element |
Element.add(Element element)
Sets this = this + element.
|
Element[] |
Field.add(Element[] a,
Element[] b)
Computes the component-wise addition between a and b.
|
Element[] |
Field.add(Element[] a,
Element[] b)
Computes the component-wise addition between a and b.
|
Element |
Element.div(Element element)
Sets this = this / element
|
int |
Field.getLengthInBytes(Element e)
Returns the length in bytes needed to represent an element of this Field.
|
PairingPreProcessing |
Pairing.getPairingPreProcessingFromElement(Element in1)
Get ready to perform a pairing whose first input is in1, returns the results of time-saving pre-computation.
|
boolean |
Element.isEqual(Element value)
Returns true if this and value have the same value, false otherwise.
|
Element |
Element.mul(Element element)
Sets this = this * element.
|
Element |
Element.mulZn(Element z)
Sets this = this * z, that is this + this + … + this where there are z this's and
z is an element of a ring Z_N for some N.
|
Element |
PairingPreProcessing.pairing(Element in2)
Compute the pairing where the second argument is in2.
|
Element |
Pairing.pairing(Element[] in1,
Element[] in2)
Computes the product of pairings, that is
'e'('in1'[0], 'in2'[0]) ...
|
Element |
Pairing.pairing(Element[] in1,
Element[] in2)
Computes the product of pairings, that is
'e'('in1'[0], 'in2'[0]) ...
|
Element |
Pairing.pairing(Element in1,
Element in2)
Applies the bilinear map.
|
Element |
ElementPow.powZn(Element n)
Compute the power to n, where n is an element of a ring Z_N for some N.
|
Element |
Element.powZn(Element n)
Sets this = this^n, where n is an element of a ring Z_N for some N
(typically the order of the algebraic structure n lies in).
|
Element |
ElementPowPreProcessing.powZn(Element n)
Compute the power to n, where n is an element of a ring Z_N for some N,
using the pre-processed information,
|
Element |
Element.set(Element value)
Sets this element to value.
|
Element |
Element.sub(Element element)
Sets this = this - element.
|
Element[] |
Field.twice(Element[] elements)
Computes the component-wise twice.
|
Copyright © 2013. All rights reserved.