type

Digest

src const mixin Digest

A message digest algorithm

methods

algorithm

Get the digest algorithm name

digest

Complete the digest computation and return the hash.

digestSize

Get the computed digest size in bytes

reset

Reset the digest.

update

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

updateAscii

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

updateByte

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

updateI4

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

updateI8

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

Slot Details

algorithm

src abstract Str algorithm()

Get the digest algorithm name

digest

src abstract Buf digest()

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

digestSize

src abstract Int digestSize()

Get the computed digest size in bytes

reset

src abstract This reset()

Reset the digest. Return this.

update

src abstract This update(Buf buf)

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

updateAscii

src abstract This updateAscii(Str str)

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

updateByte

src abstract This updateByte(Int i)

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

updateI4

src abstract This updateI4(Int i)

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

updateI8

src abstract This updateI8(Int i)

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