The value 0 as a BigInteger.
Return the passed in value as an unsigned byte array.
Return the passed in value as an unsigned byte array.
the value to be converted.
a byte array without a leading zero byte if present in the signed encoding.
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..
the fixed length of the result
the value to be converted.
a byte array padded to a fixed length with leading zeros.
Create the given number of random bits.
Create the given number of random bits.
the number of random bits to create.
a source of randomness.
a byte array containing random bits.
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.
maximum bit length for the generated BigInteger.
a source of randomness.
a positive BigInteger
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'
the least value that may be generated
the greatest value that may be generated
the source of randomness
a random BigInteger value in the range [min,max]
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.
the byte array to convert
the resulting positive BigInteger
Re-implementation in Scala of select set of utility methods from org.bouncycastle.util.BigIntegers.