Create a new encryptor object with the given [`Cipher`], `key`, and `iv` (i.e. initialization vector). # Errors - Returns [`Error::Crypto`] if the given `cipher` cannot be used with `Encryptor`. - Returns [`Error::Length`] if `key` or `iv` are the wrong length for the given `cipher`. - Returns [`Error::UnsupportedCipher`] if support for the given `cipher` is not enabled in the crate features.
(cipher: Cipher, key: &[u8], iv: &[u8])
source not stored for this graph (policy: none)
nothing calls this directly
no test coverage detected