Skip to content

Commit 56de687

Browse files
authored
digest v0.10 and crypto-common v0.1 (#819)
1 parent 39d1182 commit 56de687

36 files changed

+1806
-1519
lines changed

.github/workflows/crypto-common.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
target: ${{ matrix.target }}
3636
override: true
3737
profile: minimal
38-
- run: cargo build --no-default-features --release --target ${{ matrix.target }}
38+
- run: cargo build --target ${{ matrix.target }}
3939
test:
4040
runs-on: ubuntu-latest
4141
strategy:
@@ -52,6 +52,5 @@ jobs:
5252
profile: minimal
5353
- run: cargo check --all-features
5454
- run: cargo test
55-
- run: cargo test --features core-api
5655
- run: cargo test --features std
5756
- run: cargo test --all-features

.github/workflows/crypto-mac.yml

Lines changed: 0 additions & 60 deletions
This file was deleted.

.github/workflows/digest.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
target: ${{ matrix.target }}
3636
override: true
3737
profile: minimal
38-
- run: cargo build --no-default-features --release --target ${{ matrix.target }}
38+
- run: cargo build --target ${{ matrix.target }}
3939
test:
4040
runs-on: ubuntu-latest
4141
strategy:
@@ -51,9 +51,9 @@ jobs:
5151
override: true
5252
profile: minimal
5353
- run: cargo check --all-features
54-
- run: cargo test --release
55-
- run: cargo test --features core-api --release
56-
- run: cargo test --features dev --release
57-
- run: cargo test --features alloc --release
58-
- run: cargo test --features std --release
59-
- run: cargo test --all-features --release
54+
- run: cargo test --no-default-features
55+
- run: cargo test
56+
- run: cargo test --features dev
57+
- run: cargo test --features alloc
58+
- run: cargo test --features std
59+
- run: cargo test --all-features

Cargo.lock

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

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ members = [
33
"aead",
44
"cipher",
55
"crypto-common",
6-
"crypto-mac",
76
"digest",
87
"password-hash",
98
"signature",

README.md

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

35
Collection of traits which describe functionality of cryptographic primitives.
46

57
## Crates
68

7-
| Crate name | Algorithm | Crates.io | Docs | Build Status |
8-
|---------------------|-------------------------------|-----------|-------|--------------|
9-
| [`aead`] | [Authenticated encryption] | [![crates.io](https://img.shields.io/crates/v/aead.svg)](https://crates.io/crates/aead) | [![Documentation](https://docs.rs/aead/badge.svg)](https://docs.rs/aead) | ![build](https://github.com/RustCrypto/traits/workflows/aead/badge.svg?branch=master&event=push) |
10-
| [`async‑signature`] | [Digital signature] | [![crates.io](https://img.shields.io/crates/v/async-signature.svg)](https://crates.io/crates/async-signature) | [![Documentation](https://docs.rs/async-signature/badge.svg)](https://docs.rs/async-signature) | ![build](https://github.com/RustCrypto/traits/workflows/async-signature/badge.svg?branch=master&event=push) |
11-
| [`cipher`] | [Block] and [stream cipher] | [![crates.io](https://img.shields.io/crates/v/cipher.svg)](https://crates.io/crates/cipher) | [![Documentation](https://docs.rs/cipher/badge.svg)](https://docs.rs/cipher) | ![build](https://github.com/RustCrypto/traits/workflows/cipher/badge.svg?branch=master&event=push) |
12-
| [`crypto‑mac`] | [Message authentication code] | [![crates.io](https://img.shields.io/crates/v/crypto-mac.svg)](https://crates.io/crates/crypto-mac) | [![Documentation](https://docs.rs/crypto-mac/badge.svg)](https://docs.rs/crypto-mac) | ![build](https://github.com/RustCrypto/traits/workflows/crypto-mac/badge.svg?branch=master&event=push) |
13-
| [`digest`] | [Cryptographic hash function] | [![crates.io](https://img.shields.io/crates/v/digest.svg)](https://crates.io/crates/digest) | [![Documentation](https://docs.rs/digest/badge.svg)](https://docs.rs/digest) | ![build](https://github.com/RustCrypto/traits/workflows/digest/badge.svg?branch=master&event=push) |
14-
| [`elliptic‑curve`] | [Elliptic curve cryptography] | [![crates.io](https://img.shields.io/crates/v/elliptic-curve.svg)](https://crates.io/crates/elliptic-curve) | [![Documentation](https://docs.rs/elliptic-curve/badge.svg)](https://docs.rs/elliptic-curve) | ![build](https://github.com/RustCrypto/traits/workflows/elliptic-curve/badge.svg?branch=master&event=push) |
15-
| [`password-hash`] | [Password hashing] | [![crates.io](https://img.shields.io/crates/v/password-hash.svg)](https://crates.io/crates/password-hash) | [![Documentation](https://docs.rs/password-hash/badge.svg)](https://docs.rs/password-hash) | ![build](https://github.com/RustCrypto/traits/workflows/password-hash/badge.svg?branch=master&event=push) |
16-
| [`signature`] | [Digital signature] | [![crates.io](https://img.shields.io/crates/v/signature.svg)](https://crates.io/crates/signature) | [![Documentation](https://docs.rs/signature/badge.svg)](https://docs.rs/signature) | ![build](https://github.com/RustCrypto/traits/workflows/signature/badge.svg?branch=master&event=push) |
17-
| [`universal‑hash`] | [Universal hash function] | [![crates.io](https://img.shields.io/crates/v/universal-hash.svg)](https://crates.io/crates/universal-hash) | [![Documentation](https://docs.rs/universal-hash/badge.svg)](https://docs.rs/universal-hash) | ![build](https://github.com/RustCrypto/traits/workflows/universal-hash/badge.svg?branch=master&event=push) |
18-
19-
### Additional crates
9+
| Name | Algorithm | Crates.io | Docs | MSRV |
10+
|---------------------|-----------|:---------:|:-----:|:----:|
11+
| [`aead`] | [Authenticated encryption] | [![crates.io](https://img.shields.io/crates/v/aead.svg)](https://crates.io/crates/aead) | [![Documentation](https://docs.rs/aead/badge.svg)](https://docs.rs/aead) | ![MSRV 1.41][msrv-1.41] |
12+
| [`async‑signature`] | [Digital signature] | [![crates.io](https://img.shields.io/crates/v/async-signature.svg)](https://crates.io/crates/async-signature) | [![Documentation](https://docs.rs/async-signature/badge.svg)](https://docs.rs/async-signature) | ![MSRV 1.41][msrv-1.41] |
13+
| [`cipher`] | [Block] and [stream cipher] | [![crates.io](https://img.shields.io/crates/v/cipher.svg)](https://crates.io/crates/cipher) | [![Documentation](https://docs.rs/cipher/badge.svg)](https://docs.rs/cipher) | ![MSRV 1.41][msrv-1.41] |
14+
| [`crypto‑common`] | Common cryptographic traits | [![crates.io](https://img.shields.io/crates/v/crypto-common.svg)](https://crates.io/crates/crypto-common) | [![Documentation](https://docs.rs/crypto-common/badge.svg)](https://docs.rs/crypto-common) | ![MSRV 1.41][msrv-1.41] |
15+
| [`digest`] | [Cryptographic hash function] | [![crates.io](https://img.shields.io/crates/v/digest.svg)](https://crates.io/crates/digest) | [![Documentation](https://docs.rs/digest/badge.svg)](https://docs.rs/digest) | ![MSRV 1.41][msrv-1.41] |
16+
| [`elliptic‑curve`] | [Elliptic curve cryptography] | [![crates.io](https://img.shields.io/crates/v/elliptic-curve.svg)](https://crates.io/crates/elliptic-curve) | [![Documentation](https://docs.rs/elliptic-curve/badge.svg)](https://docs.rs/elliptic-curve) | ![MSRV 1.56][msrv-1.56] |
17+
| [`password-hash`] | [Password hashing] | [![crates.io](https://img.shields.io/crates/v/password-hash.svg)](https://crates.io/crates/password-hash) | [![Documentation](https://docs.rs/password-hash/badge.svg)](https://docs.rs/password-hash) | ![MSRV 1.47][msrv-1.47] |
18+
| [`signature`] | [Digital signature] | [![crates.io](https://img.shields.io/crates/v/signature.svg)](https://crates.io/crates/signature) | [![Documentation](https://docs.rs/signature/badge.svg)](https://docs.rs/signature) | ![MSRV 1.41][msrv-1.41] |
19+
| [`universal‑hash`] | [Universal hash function] | [![crates.io](https://img.shields.io/crates/v/universal-hash.svg)](https://crates.io/crates/universal-hash) | [![Documentation](https://docs.rs/universal-hash/badge.svg)](https://docs.rs/universal-hash) | ![MSRV 1.41][msrv-1.41] |
2020

21-
| Crate name | Description | Crates.io | Docs | Build Status |
22-
|------------|-------------------------|-----------|-------|--------------|
23-
| [`crypto`] | Facade for trait crates | [![crates.io](https://img.shields.io/crates/v/crypto.svg)](https://crates.io/crates/crypto) | [![Documentation](https://docs.rs/crypto/badge.svg)](https://docs.rs/crypto) | ![build](https://github.com/RustCrypto/traits/workflows/crypto/badge.svg?branch=master&event=push)
21+
### Additional Crates
2422

25-
### Minimum Supported Rust Version
23+
| Crate name | Description | Crates.io | Docs | MSRV |
24+
|------------|-------------------------|:---------:|:-----:|:----:|
25+
| [`crypto`] | Facade for trait crates | [![crates.io](https://img.shields.io/crates/v/crypto.svg)](https://crates.io/crates/crypto) | [![Documentation](https://docs.rs/crypto/badge.svg)](https://docs.rs/crypto) | ![MSRV 1.56][msrv-1.56] |
2626

27-
All crates in this repository support **Rust 1.41** or higher unless otherwise noted.
27+
### Minimum Supported Rust Version (MSRV) Policy
2828

29-
In future minimally supported version of Rust can be changed, but it will be done
30-
with the minor version bump.
29+
MSRV bumps are considered breaking changes and will be performed only with minor version bump.
3130

3231
## License
3332

@@ -40,29 +39,31 @@ at your option.
4039

4140
### Contribution
4241

43-
Unless you explicitly state otherwise, any contribution intentionally submitted
44-
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
45-
dual licensed as above, without any additional terms or conditions.
42+
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.
4643

4744
[//]: # (badges)
4845

4946
[chat-image]: https://img.shields.io/badge/zulip-join_chat-blue.svg
5047
[chat-link]: https://rustcrypto.zulipchat.com/
48+
[license-image]: https://img.shields.io/badge/license-Apache2.0/MIT-blue.svg
5149
[deps-image]: https://deps.rs/repo/github/RustCrypto/traits/status.svg
5250
[deps-link]: https://deps.rs/repo/github/RustCrypto/traits
51+
[msrv-1.41]: https://img.shields.io/badge/rustc-1.41.0+-blue.svg
52+
[msrv-1.47]: https://img.shields.io/badge/rustc-1.47.0+-blue.svg
53+
[msrv-1.56]: https://img.shields.io/badge/rustc-1.56.0+-blue.svg
5354

5455
[//]: # (crates)
5556

56-
[`aead`]: https://github.com/RustCrypto/traits/tree/master/aead
57-
[`async‑signature`]: https://github.com/RustCrypto/traits/tree/master/signature/async
58-
[`cipher`]: https://github.com/RustCrypto/traits/tree/master/cipher
59-
[`crypto‑mac`]: https://github.com/RustCrypto/traits/tree/master/crypto-mac
60-
[`crypto`]: https://github.com/RustCrypto/traits/tree/master/crypto
61-
[`digest`]: https://github.com/RustCrypto/traits/tree/master/digest
62-
[`elliptic‑curve`]: https://github.com/RustCrypto/traits/tree/master/elliptic-curve
63-
[`password-hash`]: https://github.com/RustCrypto/traits/tree/master/password-hash
64-
[`signature`]: https://github.com/RustCrypto/traits/tree/master/signature
65-
[`universal‑hash`]: https://github.com/RustCrypto/traits/tree/master/universal-hash
57+
[`aead`]: ./aead
58+
[`async‑signature`]: ./signature/async
59+
[`cipher`]: ./cipher
60+
[`crypto‑common`]: ./crypto-common
61+
[`crypto`]: ./crypto
62+
[`digest`]: ./digest
63+
[`elliptic‑curve`]: ./elliptic-curve
64+
[`password-hash`]: ./password-hash
65+
[`signature`]: ./signature
66+
[`universal‑hash`]: ./universal-hash
6667

6768
[//]: # (algorithms)
6869

cipher/Cargo.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,13 @@ categories = ["cryptography", "no-std"]
1313

1414
[dependencies]
1515
generic-array = "0.14"
16-
crypto-common = { version = "=0.1.0-pre", path = "../crypto-common" }
16+
crypto-common = { version = "0.1", path = "../crypto-common" }
1717

18-
# optional dependencies
19-
block-buffer = { version = "=0.10.0-pre.4", features = ["block-padding"], optional = true }
2018
blobby = { version = "0.3", optional = true }
2119
rand_core = { version = "0.6", optional = true }
2220

2321
[features]
24-
default = ["mode_wrapper"]
2522
std = ["crypto-common/std", "rand_core/std"]
26-
mode_wrapper = ["block-buffer"]
2723
dev = ["blobby"]
2824

2925
[package.metadata.docs.rs]

crypto-common/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## 0.1.0 (2021-12-07)
9+
- Initial release

crypto-common/Cargo.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "crypto-common"
33
description = "Common cryptographic traits"
4-
version = "0.1.0-pre"
4+
version = "0.1.0"
55
authors = ["RustCrypto Developers"]
66
license = "MIT OR Apache-2.0"
77
readme = "README.md"
@@ -13,9 +13,7 @@ categories = ["cryptography", "no-std"]
1313

1414
[dependencies]
1515
generic-array = "0.14"
16-
block-buffer = { version = "0.10.0-pre.2", optional = true }
16+
rand_core = { version = "0.6", optional = true }
1717

1818
[features]
19-
block-padding = ["block-buffer/block-padding"]
20-
core-api = ["block-buffer"]
2119
std = []

0 commit comments

Comments
 (0)