com.mchange.cryptoutil

Members list

Type members

Classlikes

class BadConversionException(msg: String, t: Throwable) extends CryptoutilException

Attributes

Supertypes
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
object Byteable

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Byteable.type
trait Byteable[T]

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
class CryptoutilException(msg: String, cause: Throwable) extends Exception

Attributes

Supertypes
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
Known subtypes
opaque object Hash

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Hash.type

Types

opaque type Hash

Value members

Concrete methods

def asFixedLengthSignedByteArray(bi: BigInt, desiredLength: Int): Array[Byte]
def asFixedLengthUnsignedByteArray(bi: BigInt, desiredLength: Int, allowCoerceNegativeValues: Boolean): Array[Byte]
def negOnePadLeft(bytes: Array[Byte], desiredLength: Int): Array[Byte]
def zeroPadLeft(bytes: Array[Byte], desiredLength: Int): Array[Byte]

Givens

Givens

given given_Byteable_Array: Byteable[Array[Byte]]
given given_Byteable_ArraySeq: Byteable[ArraySeq[Byte]]
given given_Byteable_Seq: Byteable[Seq[Byte]]

Extensions

Extensions

extension (bi: BigInt)
def toValidInt: Int
def toValidLong: Long
def unsignedBytes(len: Int, allowCoerceNegativeValues: Boolean): Array[Byte]

Converts the byte representation of the BigInt to the desired len by removing or padding with leading zeros.

Converts the byte representation of the BigInt to the desired len by removing or padding with leading zeros.

If allowCoerceNegativeValues is set, ignores sign.

Attributes

extension (byte: Byte)
def hex: String
extension (i: Int)
def fillBigEndian(bytes: Array[Byte], offset: Int): Unit
def fillBigEndian(bytes: Array[Byte]): Unit
def toByteArrayBigEndian: Array[Byte]
def toByteSeqBigEndian: ArraySeq[Byte]
extension (jbi: BigInteger)
def toBigInt: BigInt
extension (l: Long)
def fillBigEndian(bytes: Array[Byte], offset: Int): Unit
def fillBigEndian(bytes: Array[Byte]): Unit
def toByteArrayBigEndian: Array[Byte]
def toByteSeqBigEndian: ArraySeq[Byte]
extension (string: String)
def decodeBase64: Array[Byte]
def decodeHexToArray: Array[Byte]
def decodeHexToSeq: ArraySeq[Byte]
def isMixedCase: Boolean