Struct shaman::cryptoutil::FixedBuffer64 [] [src]

pub struct FixedBuffer64 { /* fields omitted */ }

A fixed size buffer of 64 bytes useful for cryptographic operations.

Methods

impl FixedBuffer64
[src]

Create a new buffer

Trait Implementations

impl Copy for FixedBuffer64
[src]

impl Clone for FixedBuffer64
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl FixedBuffer for FixedBuffer64
[src]

Input a vector of bytes. If the buffer becomes full, process it with the provided function and then clear the buffer. Read more

Reset the buffer.

Zero the buffer up until the specified index. The buffer position currently must not be greater than that index. Read more

Get a slice of the buffer of the specified size. There must be at least that many bytes remaining in the buffer. Read more

Get the current buffer. The buffer must already be full. This clears the buffer as well.

Get the current buffer.

Get the current position of the buffer.

Get the number of bytes remaining in the buffer until it is full.

Get the size of the buffer