Object

sigmastate.crypto

Platform

Related Doc: package crypto

Permalink

object Platform

JVM specific implementation of crypto methods

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Platform
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class ECFieldElem(value: ECFieldElement) extends Product with Serializable

    Permalink

    Wrapper for field element type.

  2. case class Ecp(value: ECPoint) extends Product with Serializable

    Permalink

    Wrapper for point type.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def createContext(): CryptoContext

    Permalink

    Create a new context for cryptographic operations.

  7. def encodeFieldElem(p: ECFieldElem): Array[Byte]

    Permalink

    Returns byte representation of the given field element.

  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def exponentiatePoint(p: Ecp, n: BigInteger): Ecp

    Permalink

    Exponentiate a point.

    Exponentiate a point.

    p

    point to exponentiate

    n

    exponent

    returns

    p to the power of n (p^n)

  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def getAffineXCoord(p: Ecp): ECFieldElem

    Permalink

    Returns the affine x-coordinate after checking that this point is normalized.

    Returns the affine x-coordinate after checking that this point is normalized.

    returns

    The affine x-coordinate of this point

    Exceptions thrown

    IllegalStateException if the point is not normalized

  13. def getAffineYCoord(p: Ecp): ECFieldElem

    Permalink

    Returns the affine y-coordinate after checking that this point is normalized

    Returns the affine y-coordinate after checking that this point is normalized

    returns

    The affine y-coordinate of this point

    Exceptions thrown

    IllegalStateException if the point is not normalized

  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def getXCoord(p: Ecp): ECFieldElem

    Permalink

    Returns the x-coordinate.

    Returns the x-coordinate.

    Caution: depending on the curve's coordinate system, this may not be the same value as in an affine coordinate system; use normalize() to get a point where the coordinates have their affine values, or use getAffineXCoord() if you expect the point to already have been normalized.

    returns

    the x-coordinate of this point

  16. def getYCoord(p: Ecp): ECFieldElem

    Permalink

    Returns the y-coordinate.

    Returns the y-coordinate.

    Caution: depending on the curve's coordinate system, this may not be the same value as in an affine coordinate system; use normalize() to get a point where the coordinates have their affine values, or use getAffineYCoord() if you expect the point to already have been normalized.

    returns

    the y-coordinate of this point

  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. def isInfinityPoint(p: Ecp): Boolean

    Permalink

    Check if a point is infinity.

  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. def multiplyPoints(p1: Ecp, p2: Ecp): Ecp

    Permalink

    Multiply two points.

    Multiply two points.

    p1

    first point

    p2

    second point

    returns

    group multiplication (p1 * p2)

  21. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. def negatePoint(p: Ecp): Ecp

    Permalink

    Negate a point.

  23. def normalizePoint(p: Ecp): Ecp

    Permalink

    * Normalization ensures that any projective coordinate is 1, and therefore that the x, y coordinates reflect those of the equivalent point in an affine coordinate system.

    * Normalization ensures that any projective coordinate is 1, and therefore that the x, y coordinates reflect those of the equivalent point in an affine coordinate system.

    returns

    a new ECPoint instance representing the same point, but with normalized coordinates

  24. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. def showPoint(p: Ecp): String

    Permalink

    Return simplified string representation of the point (used only for debugging)

  27. def signOf(p: ECFieldElem): Boolean

    Permalink

    Returns the value of bit 0 in BigInteger representation of this point.

  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  29. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  30. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped