CryptoHashAPI

tsec.hashing.CryptoHashAPI
trait CryptoHashAPI[A]

Attributes

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

Members list

Value members

Concrete methods

final def checkWithHash[F[_] : Functor](l: Array[Byte], r: Type[A])(implicit evidence$2: Functor[F], C: CryptoHasher[F, A]): F[VerificationStatus]

Check against another hash

Check against another hash

Attributes

Source
CryptoHashAPI.scala
final def checkWithHashBool[F[_] : Functor](l: Array[Byte], r: Type[A])(implicit evidence$1: Functor[F], C: CryptoHasher[F, A]): F[Boolean]

Check against another hash

Check against another hash

Attributes

Source
CryptoHashAPI.scala
final def hash[F[_]](bytes: Array[Byte])(implicit C: CryptoHasher[F, A]): F[Type[A]]

Lift a the cryptographic hash function into an F[_] which captures side effects.

Lift a the cryptographic hash function into an F[_] which captures side effects.

The underlying hash function may or may not side effect.

Attributes

Returns
Source
CryptoHashAPI.scala
def hashPipe[F[_]](implicit C: CryptoHasher[F, A]): (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
CryptoHashAPI.scala
final def unsafeHash(bytes: Array[Byte])(implicit C: CryptoHasher[Id, A]): Type[A]

The cryptographic hash function, in its raw form

The cryptographic hash function, in its raw form

It may or may not be pure, depending on the implementation of S (in libsodium it is not pure, since JNI, but in java it is essentially pure)

Attributes

Returns
Source
CryptoHashAPI.scala