MCPcopy Create free account
hub / github.com/RustCrypto/SSH / new_from_slice

Method new_from_slice

ssh-cipher/src/block_cipher/aes.rs:35–55  ·  view source on GitHub ↗

Create a new AES block cipher instance. Supports `key` whose length is 16-bytes (128-bit), 24-bytes (192-bits), or 32-bytes (256-bits). # Errors Returns [`InvalidLength`] if the length of `key` is not any of the above.

(key: &[u8])

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected