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.

Wraps a general Checksum with the added benefit of encrypting the whirlpool hash into the checksum buffer.

A struct that holds both keys for RSA encryption.