checksums 0.9.1

Tool for making/verifying checksums of directory trees
Documentation
1
2
3
4
5
6
7
use crc16::{State, ARC};
use ::Algorithm;


hash_func!(State::new(),
           |state: &mut State<ARC>, buffer: &[u8]| state.update(buffer),
           |state: State<ARC>| format!("{:01$X}", state.get(), Algorithm::CRC16.hexlen()));