Search results

There are no results.

std.crypto.cipher.Cipher

trait pub Cipher

A cryptographic cipher.

Required methods

decrypt

Show source code
Hide 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 code
Hide 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

std.crypto.chacha.

ChaCha

impl Cipher for ChaCha
std.crypto.chacha.

XChaCha

impl Cipher for XChaCha