Expand description
Validator for the cache.
Example
use rscache::checksum::Checksum;
// Either one works
let checksum = cache.checksum()?;
let checksum = Checksum::new(&cache)?;
checksum.validate(&client_crcs)?;
// Encode the checksum with the OSRS protocol.
let buffer = checksum.encode()?;
Structs
- Validator for the
Cache
. - Each entry in the checksum is mapped to an
Index
. - RsaChecksum
rs3
Wraps a generalChecksum
with the added benefit of encrypting the whirlpool hash into the checksum buffer. - RsaKeys
rs3
A struct that holds both keys for RSA encryption.