LegacyMd5 structv0.1.0

Source
An incremental MD5.
pub struct LegacyMd5 {
    // private fields
}

Broken; see the note at the top of this file. Structural Copy; copying takes an independent snapshot of the digest state.

Constructors

LegacyMd5

pub func LegacyMd5() -> LegacyMd5

An MD5 state.

Returns: an MD5 hasher, which is broken and is here only to read what already exists

Source

Methods

Update

pub func Update(self: &var LegacyMd5, bytes: char8[..])

Adds bytes to the message.

NameTypeDescription
byteschar8[..]the bytes to absorb

Source

Finish

pub func Finish(self: &var LegacyMd5, into: var char8[..])

Writes the sixteen-byte digest into into. The length is appended little-endian, unlike the SHA family's big-endian count.

NameTypeDescription
intovar char8[..]receives the output

Source

LegacyMd5Of

pub func LegacyMd5Of(bytes: char8[..], into: var char8[..])

The MD5 digest of bytes. Broken; see the note at the top of this file.

Source

Parameters

NameTypeDescription
byteschar8[..]the bytes to absorb
intovar char8[..]receives the output