CryptoHasher

tsec.hashing.CryptoHasher
trait CryptoHasher[F[_], A]

Attributes

Source
CryptoHasher.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

Attributes

Source
CryptoHasher.scala
def hash(bytes: Array[Byte]): F[Type[A]]

Lift a the cryptographic hash function into an F[_]

Lift a the cryptographic hash function into an F[_]

The underlying hash function may or may not side effect.

Attributes

Returns
Source
CryptoHasher.scala
def hashPipe: (F, Byte) => Byte

A pipe that transforms a byte stream into the stream of its cryptographic hash.

A pipe that transforms a byte stream into the stream of its cryptographic hash.

Useful for hashes of arbitrary length.

Attributes

Source
CryptoHasher.scala

Concrete methods

def checkWithHash(l: Array[Byte], r: Type[A])(implicit F: Functor[F]): F[VerificationStatus]

Check against another hash

Check against another hash

Attributes

Source
CryptoHasher.scala
def checkWithHashBool(l: Array[Byte], r: Type[A])(implicit F: Functor[F]): F[Boolean]

Check against another hash

Check against another hash

Attributes

Source
CryptoHasher.scala