Search results

There are no results.

std.crypto.cipher.Cipher

Cipher

A cryptographic cipher.

Required methods

decrypt

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

std.crypto.chacha.

ChaCha20

impl Cipher for ChaCha20
std.crypto.chacha.

XChaCha20

impl Cipher for XChaCha20