Registry / crypto / block-modes

block-modes

JSON →
library0.9.1rscratesunverified

This crate is deprecated. Use crates from https://github.com/RustCrypto/block-modes instead.

# Cargo.toml [dependencies] block-modes = "0.9.1"
INSTALL
IMPORT
SIG · BLOCK-MODES
B
block-modes
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.

Cbc
use block_modes::Cbc;

Example of using deprecated block modes (not recommended).

// Deprecated: use aes::Aes256 and cbc::Cbc from RustCrypto instead use block_modes::{BlockMode, Cbc}; use block_modes::block_padding::Pkcs7; let key = [0u8; 32]; let iv = [0u8; 16]; let cipher = Cbc::<aes::Aes256, Pkcs7>::new_from_slices(&key, &iv).unwrap();
Debug
Known issues
breakingCrate is deprecated; use RustCrypto block-modes instead.
fix
Replace with aes, cbc, etc. from RustCrypto.
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
Resources
block-modes — cargo add block-modes · libregistry