Cipher.named constructor

Cipher.named(
  1. String algorithm,
  2. List<int> key
)

Any cipher EVP_CIPHER_fetch knows, e.g. AES-256-CBC, ChaCha20.

Implementation

factory Cipher.named(String algorithm, List<int> key) =>
    Cipher._(algorithm, Uint8List.fromList(key));