core/crypto/legacy/md5
md5
Types
1Constants
2BLOCK_SIZE
BLOCK_SIZE :: 64SourceBLOCK_SIZE is the MD5 block size in bytes.
DIGEST_SIZE
DIGEST_SIZE :: 16SourceDIGEST_SIZE is the MD5 digest size in bytes.
Procedures
5clone
clone :: proc(ctx: ^T, other: ^T)Sourceclone clones the Context other into ctx.
final
final :: proc(ctx: ^Context, hash: []u8, finalize_clone: bool)Sourcefinal finalizes the Context, writes the digest to hash, and calls reset on the Context.
If and only if (⟺) finalize_clone is set, final will work on a copy of the Context, which is useful for for calculating rolling digests.
init
init :: proc(ctx: ^Context)Sourceinit initializes a Context.
reset
reset :: proc(ctx: ^T)Sourcereset sanitizes the Context. The Context must be re-initialized to be used again.
update
update :: proc(ctx: ^Context, data: []u8)Sourceupdate adds more data to the Context.