Struct xsalsa20poly1305::XSalsa20Poly1305 [−][src]
pub struct XSalsa20Poly1305 { /* fields omitted */ }
Expand description
XSalsa20Poly1305 (a.k.a. NaCl crypto_secretbox
) authenticated
encryption cipher.
Trait Implementations
type NonceSize = U24
type NonceSize = U24
The length of a nonce.
type TagSize = U16
type TagSize = U16
The maximum length of the nonce.
type CiphertextOverhead = U0
type CiphertextOverhead = U0
The upper bound amount of additional space required to support a ciphertext vs. a plaintext. Read more
Encrypt the given buffer containing a plaintext message in-place. Read more
Encrypt the data in-place, returning the authentication tag
Decrypt the message in-place, returning an error in the event the provided authentication tag does not match the given ciphertext. Read more
Decrypt the message in-place, returning an error in the event the provided authentication tag does not match the given ciphertext (i.e. ciphertext is modified/unauthentic) Read more
Auto Trait Implementations
impl RefUnwindSafe for XSalsa20Poly1305
impl Send for XSalsa20Poly1305
impl Sync for XSalsa20Poly1305
impl Unpin for XSalsa20Poly1305
impl UnwindSafe for XSalsa20Poly1305
Blanket Implementations
Encrypt the given plaintext payload, and return the resulting ciphertext as a vector of bytes. Read more
Encrypt the given plaintext slice, and return the resulting ciphertext as a vector of bytes. Read more
Encrypt the given buffer containing a plaintext message in-place. Read more
Encrypt the data in-place, returning the authentication tag
Decrypt the message in-place, returning an error in the event the provided authentication tag does not match the given ciphertext. Read more
Decrypt the data in-place, returning an error in the event the provided authentication tag does not match the given ciphertext (i.e. ciphertext is modified/unauthentic) Read more
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self