Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions .github/workflows/ecb.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: ecb

on:
pull_request:
paths:
- ".github/workflows/ecb.yml"
- "ecb/**"
- "Cargo.*"
push:
branches: master

defaults:
run:
working-directory: ecb

env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Dwarnings"

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.85.0 # MSRV
- stable
target:
- thumbv7em-none-eabi
- wasm32-unknown-unknown
steps:
- uses: actions/checkout@v4
- uses: RustCrypto/actions/cargo-cache@master
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
targets: ${{ matrix.target }}
- run: cargo build --no-default-features --release --target ${{ matrix.target }}

minimal-versions:
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
with:
working-directory: ${{ github.workflow }}

test:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.85.0 # MSRV
- stable
steps:
- uses: actions/checkout@v4
- uses: RustCrypto/actions/cargo-cache@master
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- run: cargo test
- run: cargo test --all-features
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
'cfb8-v*',
'ctr-v*',
'cts-v*',
'ecb-v*',
'ige-v*',
'ofb-v*',
'pcbc-v*',
Expand Down
33 changes: 21 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ resolver = "3"
members = [
"belt-ctr",
"cbc",
"cts",
"cfb8",
"cfb-mode",
"cfb8",
"ctr",
"cts",
"ecb",
"ige",
"ofb",
"pcbc"
Expand Down
19 changes: 19 additions & 0 deletions ecb/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 0.2.1 (UNRELEASED)
### Changed
- Crate was moved to the [RustCrypto/block-modes] repository ([#118])

[#118]: https://github.com/RustCrypto/block-modes/pull/118
[RustCrypto/block-modes]: https://github.com/RustCrypto/block-modes

## 0.2.0 (2026-04-10)
### Changed
- Bump `cipher` from `0.4` to `0.5`
- Edition changed to 2024 and MSRV bumped to 1.85
- Relax MSRV policy and allow MSRV bumps in patch releases
33 changes: 33 additions & 0 deletions ecb/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[package]
name = "ecb"
version = "0.2.0"
authors = ["RustCrypto Developers"]
edition = "2024"
rust-version = "1.85"
documentation = "https://docs.rs/ecb"
readme = "README.md"
repository = "https://github.com/RustCrypto/block-modes"
license = "MIT OR Apache-2.0"
keywords = ["crypto", "block-mode", "ciphers"]
categories = ["cryptography", "no-std"]
description = "Generic implementation of the ECB (Electronic Codebook) block cipher mode of operation"

[dependencies]
cipher = "0.5"

[dev-dependencies]
cipher = { version = "0.5", features = ["dev"] }
hex-literal = "1"
aes = "0.9"

[features]
default = ["block-padding"]
alloc = ["cipher/alloc"]
block-padding = ["cipher/block-padding"]
zeroize = ["cipher/zeroize"]

[lints]
workspace = true

[package.metadata.docs.rs]
all-features = true
Loading
Loading