Skip to content

Commit 751c033

Browse files
committed
merge from release/0.1.2alpha
2 parents fcec4af + 2fd567c commit 751c033

22 files changed

Lines changed: 772 additions & 58 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
@@ -32,7 +32,7 @@ Where the behaviour of a function is critical to test but cannot be tested from
3232
private function, in-line tests in the source file should be used.
3333

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

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

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

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

6677
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
@@ -15,6 +15,7 @@ pub mod kem;
1515
pub mod mac;
1616
pub mod signature;
1717
pub mod suspendable_state;
18+
pub mod symmetric_ciphers;
1819

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

0 commit comments

Comments
 (0)