Skip to content

crypto.ripemd160 #

fn hexhash #

fn hexhash(s string) string

hexhash returns a hexadecimal RIPEMD-160 hash sum string of s.

fn new #

fn new() &Digest

new returns a new Digest (implementing hash.Hash) computing the MD5 checksum.

fn (Digest) free #

unsafe
fn (mut d Digest) free()

free the resources taken by the Digest d

fn (Digest) reset #

fn (mut d Digest) reset()

reset the state of the Digest d

fn (Digest) size #

fn (d &Digest) size() int

size returns the size of the checksum in bytes.

fn (Digest) block_size #

fn (d &Digest) block_size() int

block_size returns the block size of the checksum in bytes.

fn (Digest) write #

fn (mut d Digest) write(p_ []u8) !int

write writes the contents of p_ to the internal hash representation.

fn (Digest) sum #

fn (d0 &Digest) sum(inp []u8) []u8

sum returns the RIPEMD-160 sum of the bytes in inp.