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
.
RsaChecksum
rs3
Wraps a general Checksum
with the added benefit of encrypting
the whirlpool hash into the checksum buffer.
RsaKeys
rs3
A struct that holds both keys for RSA encryption.