Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add lms to RustCrypto/signatures #801

Merged
merged 5 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .github/workflows/lms.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: lms-rust
incertia marked this conversation as resolved.
Show resolved Hide resolved
on:
pull_request:
paths:
- ".github/workflows/lms.yml"
- "lms/**"
- "Cargo.*"
push:
branches: master

defaults:
run:
working-directory: lms

env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Dwarnings"

jobs:
clippy:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.73.0 # MSRV
- stable
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
components: clippy
- run: cargo clippy --no-default-features
- run: cargo clippy
- run: cargo clippy --all-features

test:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.73.0 # MSRV
- stable
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- run: cargo check --all-features
- run: cargo test --no-default-features
- run: cargo test
- run: cargo test --all-features
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ members = [
"ecdsa",
"ed448",
"ed25519",
"lms",
"rfc6979"
]

Expand Down
5 changes: 5 additions & 0 deletions lms/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
225 changes: 225 additions & 0 deletions lms/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 38 additions & 0 deletions lms/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[package]
name = "lms-signature"
version = "0.0.0"
edition = "2021"
incertia marked this conversation as resolved.
Show resolved Hide resolved
license = "Apache-2.0 OR MIT"
repository = "https://github.com/RustCrypto/signatures/tree/master/lms"
readme = "README.md"
rust-version = "1.73"
categories = ["cryptography"]
keywords = ["crypto", "signature"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[lib]
name = "lms"
path = "src/lib.rs"
edition = "2021"

[dependencies]
digest = "0.10.7"
generic-array = {version = "0.14.4", features = ["zeroize"]}
rand = "0.8.5"
sha2 = "0.10.8"
static_assertions = "1.1.0"
rand_core = "0.6.4"
zeroize = "1.7.0"

[dependencies.typenum]
version = "1.17.0"
features = ["const-generics"]

[dependencies.signature]
version = "2.3.0-pre.0"
features = ["digest", "std", "rand_core"]

[dev-dependencies]
hex = "0.4.3"
hex-literal = "0.4.1"
Loading
Loading