LegacyMd5 structv0.1.0
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
Methods
Update
pub func Update(self: &var LegacyMd5, bytes: char8[..])
Adds bytes to the message.
| Name | Type | Description |
|---|---|---|
bytes | char8[..] | the bytes to absorb |
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.
| Name | Type | Description |
|---|---|---|
into | var char8[..] | receives the output |
Related
LegacyMd5Of
pub func LegacyMd5Of(bytes: char8[..], into: var char8[..])
The MD5 digest of bytes. Broken; see the note at the top of this file.
Parameters
| Name | Type | Description |
|---|---|---|
bytes | char8[..] | the bytes to absorb |
into | var char8[..] | receives the output |