std.crypto.cipher.Cipher
trait pub Cipher
A cryptographic cipher.
Required methods
decrypt
Show source codeHide source code
fn pub mut decrypt(bytes: mut ByteArray)
fn pub mut decrypt(bytes: mut ByteArray)
Encrypts the data in the given ByteArray
, modifying it in-place.
encrypt
Show source codeHide source code
fn pub mut encrypt(bytes: mut ByteArray)
fn pub mut encrypt(bytes: mut ByteArray)
Encrypts the data in the given ByteArray
, modifying it in-place.
Implementations
ChaCha
impl Cipher for ChaCha
XChaCha
impl Cipher for XChaCha