ChaCha20-CTR with 96-bit nonces and a 32 bit counter.
enum ChaCha20CTR
s6Crypto8InsecureO01_A6ExtrasE11ChaCha20CTROWhat are these?
s6Crypto8InsecureO01_A6ExtrasE11ChaCha20CTRO
FNV24: [2HZKM]
struct Counter
struct Nonce
static func encrypt<Plaintext>(Plaintext, using: SymmetricKey, counter: Insecure.ChaCha20CTR.Counter, nonce: Insecure.ChaCha20CTR.Nonce) throws -> Data
Encrypts data using ChaCha20CTR
import _CryptoExtras
import Crypto
enum Insecure
A container for older, cryptographically insecure algorithms.
static func encrypt<Plaintext>(_ message: Plaintext, using key: SymmetricKey, counter: Insecure.ChaCha20CTR.Counter = Counter(), nonce: Insecure.ChaCha20CTR.Nonce) throws -> Data where Plaintext : DataProtocol