Module cryptoxide::ripemd160

source ·
Expand description

An implementation of the RIPEMD-160 cryptographic hash.

RIPEMD (RIPE Message Digest) is a family of cryptographic hash functions developed in 1992 (the original RIPEMD) and 1996 (other variants). There are five functions in the family: RIPEMD, RIPEMD-128, RIPEMD-160, RIPEMD-256, and RIPEMD-320, of which RIPEMD-160 is the most common.

use cryptoxide::{ripemd160::Ripemd160, digest::Digest};

let mut digest = [0u8; 20];
let mut context = Ripemd160::new();

context.input(b"hello world");
context.result(&mut digest);

Structs

Structure representing the state of a Ripemd160 computation