Skip to content

Commit 87a6da8

Browse files
authored
lms: convert to hybrid-array (#865)
1 parent e87f60d commit 87a6da8

23 files changed

+134
-373
lines changed

.github/workflows/dsa.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- thumbv7em-none-eabi
2525
- wasm32-unknown-unknown
2626
toolchain:
27-
- 1.72.0 # MSRV
27+
- 1.81.0 # MSRV
2828
- stable
2929
steps:
3030
- uses: actions/checkout@v4
@@ -42,7 +42,7 @@ jobs:
4242
- macos-latest
4343
- windows-latest
4444
toolchain:
45-
- 1.72.0 # MSRV
45+
- 1.81.0 # MSRV
4646
- stable
4747
runs-on: ${{ matrix.platform }}
4848
steps:

.github/workflows/ecdsa.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- thumbv7em-none-eabi
2727
- wasm32-unknown-unknown
2828
rust:
29-
- 1.73.0 # MSRV
29+
- 1.81.0 # MSRV
3030
- stable
3131
steps:
3232
- uses: actions/checkout@v4
@@ -42,7 +42,7 @@ jobs:
4242
strategy:
4343
matrix:
4444
rust:
45-
- 1.73.0 # MSRV
45+
- 1.81.0 # MSRV
4646
- stable
4747
steps:
4848
- uses: actions/checkout@v4

.github/workflows/lms.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
strategy:
2323
matrix:
2424
rust:
25-
- 1.73.0 # MSRV
25+
- 1.81.0 # MSRV
2626
- stable
2727
steps:
2828
- uses: actions/checkout@v4

.github/workflows/rfc6979.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- thumbv7em-none-eabi
2525
- wasm32-unknown-unknown
2626
rust:
27-
- 1.72.0 # MSRV
27+
- 1.81.0 # MSRV
2828
- stable
2929
steps:
3030
- uses: actions/checkout@v4
@@ -39,7 +39,7 @@ jobs:
3939
strategy:
4040
matrix:
4141
rust:
42-
- 1.72.0 # MSRV
42+
- 1.81.0 # MSRV
4343
- stable
4444
steps:
4545
- uses: actions/checkout@v4

.github/workflows/slh-dsa.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
strategy:
2323
matrix:
2424
rust:
25-
- 1.75.0 # MSRV
25+
- 1.81.0 # MSRV
2626
- stable
2727
steps:
2828
- uses: actions/checkout@v4

.github/workflows/workspace.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ jobs:
2929
- uses: actions/checkout@v4
3030
- uses: dtolnay/rust-toolchain@master
3131
with:
32-
toolchain: 1.75.0
32+
toolchain: 1.81.0
3333
components: clippy
3434
- run: cargo clippy --all-features -- -D warnings

Cargo.lock

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

dsa/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ homepage = "https://github.com/RustCrypto/signatures/tree/master/dsa"
1313
repository = "https://github.com/RustCrypto/signatures"
1414
categories = ["cryptography", "no-std"]
1515
keywords = ["crypto", "nist", "signature"]
16-
rust-version = "1.72"
16+
rust-version = "1.81"
1717

1818
[dependencies]
1919
digest = "=0.11.0-pre.9"

ecdsa/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ readme = "README.md"
1414
categories = ["cryptography", "no-std"]
1515
keywords = ["crypto", "ecc", "nist", "secp256k1", "signature"]
1616
edition = "2021"
17-
rust-version = "1.73"
17+
rust-version = "1.81"
1818

1919
[dependencies]
2020
elliptic-curve = { version = "0.14.0-rc.1", default-features = false, features = ["digest", "sec1"] }

ed25519/src/pkcs8.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@ pub use pkcs8::der::{
3030
use core::fmt;
3131

3232
#[cfg(feature = "pem")]
33-
use {
34-
alloc::string::{String, ToString},
35-
core::str,
36-
};
33+
use core::str;
3734

3835
#[cfg(feature = "zeroize")]
3936
use zeroize::Zeroize;
@@ -323,10 +320,13 @@ impl str::FromStr for PublicKeyBytes {
323320
}
324321

325322
#[cfg(feature = "pem")]
326-
impl ToString for PublicKeyBytes {
327-
fn to_string(&self) -> String {
328-
self.to_public_key_pem(Default::default())
329-
.expect("PEM serialization error")
323+
impl fmt::Display for PublicKeyBytes {
324+
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
325+
f.write_str(
326+
&self
327+
.to_public_key_pem(Default::default())
328+
.expect("PEM serialization error"),
329+
)
330330
}
331331
}
332332

lms/Cargo.lock

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

0 commit comments

Comments
 (0)