Object

sigmastate.crypto

BigIntegers

Related Doc: package crypto

Permalink

object BigIntegers

Re-implementation in Scala of select set of utility methods from org.bouncycastle.util.BigIntegers.

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

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. val ZERO: BigInteger

    Permalink

    The value 0 as a BigInteger.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def asUnsignedByteArray(length: Int, value: BigInteger): Array[Byte]

    Permalink

    Return the passed in value as an unsigned byte array of the specified length, padded with leading zeros as necessary..

    Return the passed in value as an unsigned byte array of the specified length, padded with leading zeros as necessary..

    length

    the fixed length of the result

    value

    the value to be converted.

    returns

    a byte array padded to a fixed length with leading zeros.

  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def createRandom(bitLength: Int, random: SecureRandom): Array[Byte]

    Permalink

    Create the given number of random bits.

    Create the given number of random bits.

    bitLength

    the number of random bits to create.

    random

    a source of randomness.

    returns

    a byte array containing random bits.

    Annotations
    @throws( ... )
  9. def createRandomBigInteger(bitLength: Int, random: SecureRandom): BigInteger

    Permalink

    Return a positive BigInteger in the range of 0 to 2**bitLength - 1.

    Return a positive BigInteger in the range of 0 to 2**bitLength - 1.

    bitLength

    maximum bit length for the generated BigInteger.

    random

    a source of randomness.

    returns

    a positive BigInteger

  10. def createRandomInRange(min: BigInteger, max: BigInteger, random: SecureRandom): BigInteger

    Permalink

    Return a random BigInteger not less than 'min' and not greater than 'max'

    Return a random BigInteger not less than 'min' and not greater than 'max'

    min

    the least value that may be generated

    max

    the greatest value that may be generated

    random

    the source of randomness

    returns

    a random BigInteger value in the range [min,max]

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def fromUnsignedByteArray(buf: Array[Byte]): BigInteger

    Permalink

    Converts a byte array to a BigInteger, treating the array as bits of the unsigned integer.

    Converts a byte array to a BigInteger, treating the array as bits of the unsigned integer.

    buf

    the byte array to convert

    returns

    the resulting positive BigInteger

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  21. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped