Registry / crypto / cfb8
library0.9.1rscratesunverified

Implements the Cipher Feedback with eight bit feedback (CFB-8) block cipher mode of operation.

# Cargo.toml [dependencies] cfb8 = "0.9.1"
INSTALL
IMPORT
SIG · CFB8
C
cfb8
cryptorustv0.9.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Cfb8
✓ use cfb8::Cfb8;

Encrypts data using AES-128 in CFB-8 mode.

use cfb8::Cfb8; use aes::Aes128; use cipher::{KeyIvInit, StreamCipher}; fn main() { let key = [0u8; 16]; let iv = [0u8; 16]; let mut cipher = Cfb8::<Aes128>::new(&key.into(), &iv.into()); let mut data = [0u8; 16]; cipher.apply_keystream(&mut data); println!("Encrypted: {:?}", data); }
Debug
Known issues
gotchaRequires a block cipher implementation (e.g., `aes`) as a dependency.
fix
Add `aes` crate to Cargo.toml.
affects: >=0.9.0
Upgrade
Version history
0.9.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
14
Amazon
1
Resources
cfb8 — cargo add cfb8 · libregistry