Trait rscache::checksum::Rs3Encode[][src]

pub trait Rs3Encode {
    fn encode(self, exponent: &[u8], modulus: &[u8]) -> Result<Vec<u8>>;
}
Expand description

Consumes the Checksum and encodes it into a byte buffer using the RS3 protocol.

Note: RS3 clients use RSA. The encoding process requires an exponent and a modulus to encode the buffer properly.

After encoding the checksum it can be sent to the client.

Errors

Returns a CacheError if the encoding fails.

Required methods

Implementors