-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e8d4d23
commit d9c304c
Showing
22 changed files
with
1,150 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: ed448 | ||
on: | ||
pull_request: | ||
paths: | ||
- "ed448/**" | ||
- "Cargo.*" | ||
push: | ||
branches: master | ||
|
||
defaults: | ||
run: | ||
working-directory: ed448 | ||
|
||
env: | ||
CARGO_INCREMENTAL: 0 | ||
RUSTFLAGS: "-Dwarnings" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
target: | ||
- thumbv7em-none-eabi | ||
- wasm32-unknown-unknown | ||
toolchain: | ||
- 1.60.0 # MSRV | ||
- stable | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
targets: ${{ matrix.target }} | ||
toolchain: ${{ matrix.toolchain }} | ||
- run: cargo build --target ${{ matrix.target }} --release --no-default-features | ||
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features alloc | ||
# TODO(tarcieri): re-enable the following when MSRV is 1.65 | ||
#- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features pem | ||
#- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features pkcs8 | ||
#- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features alloc,pem,pkcs8 | ||
|
||
test: | ||
strategy: | ||
matrix: | ||
toolchain: | ||
- 1.65.0 # Technically MSRV is 1.60, but we have 1.65 dev-dependencies (i.e. ring-compat) | ||
- stable | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{ matrix.toolchain }} | ||
- run: cargo test --release --no-default-features | ||
- run: cargo test --release | ||
- run: cargo test --release --all-features |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ resolver = "2" | |
members = [ | ||
"dsa", | ||
"ecdsa", | ||
"ed448", | ||
"ed25519", | ||
"rfc6979" | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[package] | ||
name = "ed448-signature" | ||
version = "0.1.0" | ||
edition = "2021" | ||
authors = ["RustCrypto Developers"] | ||
license = "Apache-2.0 OR MIT" | ||
description = """ | ||
Edwards Digital Signature Algorithm (EdDSA) over Curve448 (as specified in RFC 7748) | ||
support library providing signature type definitions and PKCS#8 private key | ||
decoding/encoding support | ||
""" | ||
documentation = "https://docs.rs/ed448-signature" | ||
repository = "https://github.com/RustCrypto/signatures/tree/master/ed448-signature" | ||
readme = "README.md" | ||
categories = ["cryptography", "no-std"] | ||
keywords = ["crypto", "curve448", "ecc", "signature", "signing"] | ||
|
||
[dependencies] | ||
signature = { version = "2", default-features = false } | ||
|
||
# optional dependencies | ||
pkcs8 = { version = "0.10", optional = true } | ||
serde = { version = "1", optional = true, default-features = false } | ||
serde_bytes = { version = "0.11", optional = true } | ||
|
||
[dev-dependencies] | ||
hex-literal = "0.4" | ||
bincode = "1" | ||
|
||
[features] | ||
default = ["std"] | ||
alloc = ["pkcs8?/alloc"] | ||
pem = ["alloc", "pkcs8/pem"] | ||
serde_bytes = ["serde", "dep:serde_bytes"] | ||
std = ["signature/std"] |
Oops, something went wrong.