Struct thrussh_libsodium::Sodium
[−]
[src]
pub struct Sodium(_);
"Proof" of initialisation of the library
Methods
impl Sodium
[src]
fn chacha20_xor(&self, c: &mut [u8], n: &Nonce, k: &Key)
[src]
fn chacha20_xor_ic(&self, c: &mut [u8], n: &Nonce, ic: u64, k: &Key)
[src]
impl Sodium
[src]
fn poly1305_auth(&self, m: &[u8], key: &Key) -> Tag
[src]
fn poly1305_verify(&self, tag: &[u8], m: &[u8], key: &Key) -> bool
[src]
impl Sodium
[src]
fn scalarmult_base(&self, n: &Scalar) -> GroupElement
[src]
fn scalarmult(&self, n: &Scalar, p: &GroupElement) -> GroupElement
[src]
impl Sodium
[src]
Trait Implementations
impl Copy for Sodium
[src]
impl Clone for Sodium
[src]
fn clone(&self) -> Sodium
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Sodium
[src]
fn eq(&self, __arg_0: &Sodium) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Sodium) -> bool
[src]
This method tests for !=
.