Struct salsa20::XSalsa20[][src]

pub struct XSalsa20(_);
Expand description

XSalsa20 is a Salsa20 variant with an extended 192-bit (24-byte) nonce.

Based on the paper “Extending the Salsa20 Nonce”:

https://cr.yp.to/snuffle/xsalsa-20081128.pdf

The xsalsa20 Cargo feature must be enabled in order to use this (which it is by default).

Trait Implementations

Key size in bytes

Nonce size in bytes

Create new stream cipher instance from key and nonce arrays.

Create new stream cipher instance from variable length key and nonce given as byte slices. Read more

Apply keystream to the data, but return an error if end of a keystream will be reached. Read more

Apply keystream to the data. Read more

Try to get current keystream position Read more

Try to seek to the given position Read more

Get current keystream position Read more

Seek to the given position Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.