Skip to content

Commit

Permalink
lms: import into RustCrypto/signatures (#801)
Browse files Browse the repository at this point in the history
Leighton-Micali Hash-Based Signatures

Co-authored-by: Tjaden Hess <[email protected]>
  • Loading branch information
incertia and tjade273 authored Mar 6, 2024
1 parent c2f3ee6 commit 3e4e1aa
Show file tree
Hide file tree
Showing 27 changed files with 3,090 additions and 0 deletions.
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
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"
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

0 comments on commit 3e4e1aa

Please sign in to comment.