const mixin crypto::Digest

crypto::Digest

Source

A message digest algorithm

algorithm

abstract Str algorithm()

Source

Get the digest algorithm name

digest

abstract Buf digest()

Source

Complete the digest computation and return the hash. The digest is reset after this method is called.

digestSize

abstract Int digestSize()

Source

Get the computed digest size in bytes

reset

abstract This reset()

Source

Reset the digest. Return this.

update

abstract This update(Buf buf)

Source

Update the digest using all the bytes in the buf (regardless of current position). Return this.

updateAscii

abstract This updateAscii(Str str)

Source

Update the digest using only the 8-bit characters in given string. Return this.

updateByte

abstract This updateByte(Int i)

Source

Update the digest with one byte / 8-bit integer. Return this.

updateI4

abstract This updateI4(Int i)

Source

Update the digest with four byte / 32-bit integer. Return this.

updateI8

abstract This updateI8(Int i)

Source

Update the digest with eight byte / 64-bit integer. Return this.