std.crypto.cipher.Cipher
Cipher
A cryptographic cipher.
Required methods
decrypt
Show source codeHide source code
fn pub mut decrypt(bytes: mut ByteArray) -> ByteArray
fn pub mut decrypt(bytes: mut ByteArray) -> ByteArray
Decrypts a ByteArray
and returns the decrypted result as a new
ByteArray
.
encrypt
Show source codeHide source code
fn pub mut encrypt(bytes: mut ByteArray) -> ByteArray
fn pub mut encrypt(bytes: mut ByteArray) -> ByteArray
Encrypts a ByteArray
and returns the encrypted result as a new
ByteArray
.
Implementations
ChaCha20
impl Cipher for ChaCha20
XChaCha20
impl Cipher for XChaCha20