Skip to content

Commit 67e5f45

Browse files
authored
block-buffer v0.10 (#671)
1 parent b0246ea commit 67e5f45

File tree

12 files changed

+652
-591
lines changed

12 files changed

+652
-591
lines changed

.github/workflows/block-buffer.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ jobs:
3636
target: ${{ matrix.target }}
3737
override: true
3838
- run: cargo build --release --target ${{ matrix.target }}
39-
- run: cargo build --features block-padding --release --target ${{ matrix.target }}
4039
test:
4140
runs-on: ubuntu-latest
4241
strategy:
@@ -52,5 +51,4 @@ jobs:
5251
toolchain: ${{ matrix.rust }}
5352
override: true
5453
- run: cargo test --release
55-
- run: cargo test --features block-padding --release
5654
- run: cargo test --all-features --release

Cargo.lock

Lines changed: 11 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 32 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
1-
# RustCrypto: Utilities [![Project Chat][chat-image]][chat-link] [![dependency status][deps-image]][deps-link]
1+
# RustCrypto: Utilities
2+
3+
[![Project Chat][chat-image]][chat-link] [![dependency status][deps-image]][deps-link] ![Apache2/MIT licensed][license-image]
24

35
This repository contains various utility crates used in the RustCrypto project.
46

57
## Crates
68

79
| Name | crates.io | Docs | Description |
810
|------|-----------|------|--------------|
9-
| `blobby` | [![crates.io](https://img.shields.io/crates/v/blobby.svg)](https://crates.io/crates/blobby) | [![Documentation](https://docs.rs/blobby/badge.svg)](https://docs.rs/blobby) | Decoder of the simple de-duplicated binary blob storage format |
10-
| `block-buffer` | [![crates.io](https://img.shields.io/crates/v/block-buffer.svg)](https://crates.io/crates/block-buffer) | [![Documentation](https://docs.rs/block-buffer/badge.svg)](https://docs.rs/block-buffer) | Fixed size buffer for block processing of data |
11-
| `block‑padding` | [![crates.io](https://img.shields.io/crates/v/block-padding.svg)](https://crates.io/crates/block-padding) | [![Documentation](https://docs.rs/block-padding/badge.svg)](https://docs.rs/block-padding) | Padding and unpadding of messages divided into blocks |
12-
| `collectable` | [![crates.io](https://img.shields.io/crates/v/collectable.svg)](https://crates.io/crates/collectable) | [![Documentation](https://docs.rs/collectable/badge.svg)](https://docs.rs/collectable) | Fallible, `no_std`-friendly collection traits |
13-
| `cpufeatures` | [![crates.io](https://img.shields.io/crates/v/cpufeatures.svg)](https://crates.io/crates/cpufeatures) | [![Documentation](https://docs.rs/cpufeatures/badge.svg)](https://docs.rs/cpufeatures) | Lightweight and efficient alternative to the `is_x86_feature_detected!` macro |
14-
| `dbl` | [![crates.io](https://img.shields.io/crates/v/dbl.svg)](https://crates.io/crates/dbl) | [![Documentation](https://docs.rs/dbl/badge.svg)](https://docs.rs/dbl) | Double operation in Galois Field (GF) |
15-
| `hex-literal` | [![crates.io](https://img.shields.io/crates/v/hex-literal.svg)](https://crates.io/crates/hex-literal) | [![Documentation](https://docs.rs/hex-literal/badge.svg)](https://docs.rs/hex-literal) | Procedural macro for converting hexadecimal string to byte array at compile time |
16-
| `opaque-debug` | [![crates.io](https://img.shields.io/crates/v/opaque-debug.svg)](https://crates.io/crates/opaque-debug) | [![Documentation](https://docs.rs/opaque-debug/badge.svg)](https://docs.rs/opaque-debug) | Macro for opaque `Debug` trait implementation |
17-
| `zeroize` | [![crates.io](https://img.shields.io/crates/v/zeroize.svg)](https://crates.io/crates/zeroize) | [![Documentation](https://docs.rs/zeroize/badge.svg)](https://docs.rs/zeroize) | Securely zero memory while avoiding compiler optimizations |
11+
| [`blobby`] | [![crates.io](https://img.shields.io/crates/v/blobby.svg)](https://crates.io/crates/blobby) | [![Documentation](https://docs.rs/blobby/badge.svg)](https://docs.rs/blobby) | Decoder of the simple de-duplicated binary blob storage format |
12+
| [`block-buffer`] | [![crates.io](https://img.shields.io/crates/v/block-buffer.svg)](https://crates.io/crates/block-buffer) | [![Documentation](https://docs.rs/block-buffer/badge.svg)](https://docs.rs/block-buffer) | Fixed size buffer for block processing of data |
13+
| [`block‑padding`] | [![crates.io](https://img.shields.io/crates/v/block-padding.svg)](https://crates.io/crates/block-padding) | [![Documentation](https://docs.rs/block-padding/badge.svg)](https://docs.rs/block-padding) | Padding and unpadding of messages divided into blocks |
14+
| [`collectable`] | [![crates.io](https://img.shields.io/crates/v/collectable.svg)](https://crates.io/crates/collectable) | [![Documentation](https://docs.rs/collectable/badge.svg)](https://docs.rs/collectable) | Fallible, `no_std`-friendly collection traits |
15+
| [`cpufeatures`] | [![crates.io](https://img.shields.io/crates/v/cpufeatures.svg)](https://crates.io/crates/cpufeatures) | [![Documentation](https://docs.rs/cpufeatures/badge.svg)](https://docs.rs/cpufeatures) | Lightweight and efficient alternative to the `is_x86_feature_detected!` macro |
16+
| [`dbl`] | [![crates.io](https://img.shields.io/crates/v/dbl.svg)](https://crates.io/crates/dbl) | [![Documentation](https://docs.rs/dbl/badge.svg)](https://docs.rs/dbl) | Double operation in Galois Field (GF) |
17+
| [`hex-literal`] | [![crates.io](https://img.shields.io/crates/v/hex-literal.svg)](https://crates.io/crates/hex-literal) | [![Documentation](https://docs.rs/hex-literal/badge.svg)](https://docs.rs/hex-literal) | Procedural macro for converting hexadecimal string to byte array at compile time |
18+
| [`opaque-debug`] | [![crates.io](https://img.shields.io/crates/v/opaque-debug.svg)](https://crates.io/crates/opaque-debug) | [![Documentation](https://docs.rs/opaque-debug/badge.svg)](https://docs.rs/opaque-debug) | Macro for opaque `Debug` trait implementation |
19+
| [`wycheproof2blb`] | [![crates.io](https://img.shields.io/crates/v/wycheproof2blb.svg)](https://crates.io/crates/wycheproof2blb) | [![Documentation](https://docs.rs/wycheproof2blb/badge.svg)](https://docs.rs/wycheproof2blb) | Utility for converting [Wycheproof] test vectors to the blobby format |
20+
| [`zeroize`] | [![crates.io](https://img.shields.io/crates/v/zeroize.svg)](https://crates.io/crates/zeroize) | [![Documentation](https://docs.rs/zeroize/badge.svg)](https://docs.rs/zeroize) | Securely zero memory while avoiding compiler optimizations |
1821

1922
## License
2023

@@ -27,13 +30,29 @@ at your option.
2730

2831
### Contribution
2932

30-
Unless you explicitly state otherwise, any contribution intentionally submitted
31-
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
32-
dual licensed as above, without any additional terms or conditions.
33+
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
3334

3435
[//]: # (badges)
3536

3637
[chat-image]: https://img.shields.io/badge/zulip-join_chat-blue.svg
3738
[chat-link]: https://rustcrypto.zulipchat.com/#narrow/stream/260052-utils
39+
[license-image]: https://img.shields.io/badge/license-Apache2.0/MIT-blue.svg
3840
[deps-image]: https://deps.rs/repo/github/RustCrypto/utils/status.svg
3941
[deps-link]: https://deps.rs/repo/github/RustCrypto/utils
42+
43+
[//]: # (crates)
44+
45+
[`blobby`]: ./blobby
46+
[`block-buffer`]: ./block-buffer
47+
[`block‑padding`]: ./block‑padding
48+
[`collectable`]: ./collectable
49+
[`cpufeatures`]: ./cpufeatures
50+
[`dbl`]: ./dbl
51+
[`hex-literal`]: ./hex-literal
52+
[`opaque-debug`]: ./opaque-debug
53+
[`wycheproof2blb`]: ./wycheproof2blb
54+
[`zeroize`]: ./zeroize
55+
56+
[//]: # (misc)
57+
58+
[Wycheproof]: https://github.com/google/wycheproof

block-buffer/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## 0.10.0 (2020-12-07)
8+
### Changed
9+
- Significant reduction of number of unreachable panics. ([#671])
10+
- Added buffer kind type parameter to `BlockBuffer`, respective marker types, and type aliases. ([#671])
11+
- Various `BlockBuffer` method changes. ([#671])
12+
13+
### Removed
14+
- `pad_with` method and dependency on `block-padding`. ([#671])
15+
16+
[#671]: https://github.com/RustCrypto/utils/pull/671
17+
718
## 0.10.0 (2020-12-08)
819
### Changed
920
- Rename `input_block(s)` methods to `digest_block(s)`. ([#113])

block-buffer/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
[package]
22
name = "block-buffer"
3-
version = "0.10.0-pre.4" # Also update html_root_url in lib.rs when bumping this
3+
version = "0.10.0" # Also update html_root_url in lib.rs when bumping this
44
authors = ["RustCrypto Developers"]
55
license = "MIT OR Apache-2.0"
6-
description = "Fixed size buffer for block processing of data"
6+
description = "Buffer type for block processing of data"
77
documentation = "https://docs.rs/block-buffer"
88
repository = "https://github.com/RustCrypto/utils"
99
keywords = ["block", "buffer"]
1010
categories = ["cryptography", "no-std"]
1111
edition = "2018"
12+
readme = "README.md"
1213

1314
[dependencies]
14-
block-padding = { version = "0.3.0-pre", path = "../block-padding", optional = true }
1515
generic-array = "0.14"

block-buffer/README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# [RustCrypto]: Block Buffer
2+
3+
[![crate][crate-image]][crate-link]
4+
[![Docs][docs-image]][docs-link]
5+
![Apache2/MIT licensed][license-image]
6+
![Rust Version][rustc-image]
7+
[![Project Chat][chat-image]][chat-link]
8+
[![Build Status][build-image]][build-link]
9+
10+
Buffer type for block processing of data with minimized amount of unreachable panics.
11+
12+
## License
13+
14+
Licensed under either of:
15+
16+
* [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)
17+
* [MIT license](http://opensource.org/licenses/MIT)
18+
19+
at your option.
20+
21+
### Contribution
22+
23+
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
24+
25+
[//]: # (badges)
26+
27+
[crate-image]: https://img.shields.io/crates/v/block-buffer.svg
28+
[crate-link]: https://crates.io/crates/block-buffer
29+
[docs-image]: https://docs.rs/block-buffer/badge.svg
30+
[docs-link]: https://docs.rs/block-buffer/
31+
[license-image]: https://img.shields.io/badge/license-Apache2.0/MIT-blue.svg
32+
[rustc-image]: https://img.shields.io/badge/rustc-1.41+-blue.svg
33+
[chat-image]: https://img.shields.io/badge/zulip-join_chat-blue.svg
34+
[chat-link]: https://rustcrypto.zulipchat.com/#narrow/stream/260052-utils
35+
[build-image]: https://github.com/RustCrypto/utils/workflows/block-buffer/badge.svg?branch=master&event=push
36+
[build-link]: https://github.com/RustCrypto/utils/actions/workflows/block-buffer.yml
37+
38+
[//]: # (general links)
39+
40+
[RustCrypto]: https://github.com/rustcrypto

0 commit comments

Comments
 (0)