Skip to content

Commit 9e645c1

Browse files
author
Apache
committed
Merge branch 'release/0.1.2alpha' of git.bouncycastle.org:bc-rust into release/0.1.2alpha
2 parents bbfaab3 + 2fd567c commit 9e645c1

22 files changed

Lines changed: 779 additions & 69 deletions

File tree

Cargo.toml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,22 @@ edition = "2024"
77
[workspace.dependencies]
88

99
# *** Internal Dependencies ***
10-
bouncycastle = { path = "./", version = "0.1.1" }
11-
bouncycastle-base64 = { path = "./crypto/base64", version = "0.1.1" }
12-
bouncycastle-core = { path = "crypto/core", version = "0.1.1" }
13-
bouncycastle-core-test-framework = { path = "./crypto/core-test-framework", version = "0.1.1" }
14-
bouncycastle-factory = { path = "./crypto/factory", version = "0.1.1" }
15-
bouncycastle-hex = { path = "./crypto/hex", version = "0.1.1" }
16-
bouncycastle-hkdf = { path = "./crypto/hkdf", version = "0.1.1" }
17-
bouncycastle-hmac = { path = "./crypto/hmac", version = "0.1.1" }
10+
bouncycastle = { path = "./", version = "0.1.2" }
11+
bouncycastle-base64 = { path = "./crypto/base64", version = "0.1.2" }
12+
bouncycastle-core = { path = "crypto/core", version = "0.1.2" }
13+
bouncycastle-core-test-framework = { path = "./crypto/core-test-framework", version = "0.1.2" }
14+
bouncycastle-factory = { path = "./crypto/factory", version = "0.1.2" }
15+
bouncycastle-hex = { path = "./crypto/hex", version = "0.1.2" }
16+
bouncycastle-hkdf = { path = "./crypto/hkdf", version = "0.1.2" }
17+
bouncycastle-hmac = { path = "./crypto/hmac", version = "0.1.2" }
1818
bouncycastle-mlkem = { path = "./crypto/mlkem", version = "0.1.2" }
1919
bouncycastle-mlkem-lowmemory = { path = "./crypto/mlkem-lowmemory", version = "0.1.2" }
2020
bouncycastle-mldsa = { path = "./crypto/mldsa", version = "0.1.2" }
2121
bouncycastle-mldsa-lowmemory = { path = "./crypto/mldsa-lowmemory", version = "0.1.2" }
22-
bouncycastle-rng = { path = "./crypto/rng", version = "0.1.1" }
23-
bouncycastle-sha2 = { path = "./crypto/sha2", version = "0.1.1" }
24-
bouncycastle-sha3 = { path = "./crypto/sha3", version = "0.1.1" }
25-
bouncycastle-utils = { path = "./crypto/utils", version = "0.1.1" }
22+
bouncycastle-rng = { path = "./crypto/rng", version = "0.1.2" }
23+
bouncycastle-sha2 = { path = "./crypto/sha2", version = "0.1.2" }
24+
bouncycastle-sha3 = { path = "./crypto/sha3", version = "0.1.2" }
25+
bouncycastle-utils = { path = "./crypto/utils", version = "0.1.2" }
2626

2727

2828
# *** External Dependencies ***

QUALITY_AND_STYLE.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Where the behaviour of a function is critical to test but cannot be tested from
2828
private function, in-line tests in the source file should be used.
2929

3030
All traits in `bouncycastle-core` must have corresponding tests in `bouncycastle-core-test-framework` that exercise all
31-
behaviours and error conditions that are comment to all implementations of that trait.
31+
behaviours and error conditions that are common to all implementations of that trait.
3232

3333
All crypto algorithms must have tests against the bc-test-data repo and against wycheproof.
3434

@@ -57,6 +57,17 @@ yourself whether this function would take 6-months-from-now-you more than 10 min
5757
there comments you could add that would help future you get back up to speed faster about what this code is doing and
5858
which parts were done for a very specific reason and should not be changed on a whim.
5959

60+
## Naming Conventions
61+
62+
All normal rust naming convensions from clippy apply. In addition, some library-specific naming conventions:
63+
64+
* In constants, "LEN" is the length of a value in bytes (typically used for sizing arrays), whereas "SIZE" is a value in
65+
bits (typically used as a security parameter). For example SHA256 could have constants `HASH_SIZE = 256` and
66+
`HASH_LEN = 32`.
67+
* Functions that are part of a stateful streaming api should be named `do_*()`.
68+
* We use "pk" for public key and "sk" for secret key / private key. (some other libraries use "pub" and "priv", but "
69+
pub" is a keyword in rust, and "pubkey / privkey" is verbose :P )
70+
6071
## APIs
6172

6273
Where possible, primitives should expose "one-shot APIs" that simply take data and return a result as a static member

crypto/base64/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "bouncycastle-base64"
3-
version = "0.1.1"
3+
version = "0.1.2"
44
edition.workspace = true
55

66
[dependencies]

crypto/core-test-framework/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "bouncycastle-core-test-framework"
3-
version = "0.1.1"
3+
version = "0.1.2"
44
edition.workspace = true
55

66
[dependencies]

crypto/core-test-framework/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ pub mod kdf;
1414
pub mod kem;
1515
pub mod mac;
1616
pub mod signature;
17+
pub mod symmetric_ciphers;
1718

1819
mod fixed_seed_rng;
1920
pub use fixed_seed_rng::FixedSeedRNG;

0 commit comments

Comments
 (0)