diff --git a/.github/workflows/skein.yml b/.github/workflows/skein.yml new file mode 100644 index 00000000..8f16200c --- /dev/null +++ b/.github/workflows/skein.yml @@ -0,0 +1,61 @@ +name: skein + +on: + pull_request: + paths: + - ".github/workflows/skein.yml" + - "skein/**" + - "Cargo.*" + push: + branches: master + +defaults: + run: + working-directory: skein + +env: + CARGO_INCREMENTAL: 0 + RUSTFLAGS: "-Dwarnings" + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + rust: + - 1.57.0 # MSRV + - stable + target: + - thumbv7em-none-eabi + - wasm32-unknown-unknown + steps: + - uses: actions/checkout@v3 + - uses: RustCrypto/actions/cargo-cache@master + - uses: dtolnay/rust-toolchain@master + with: + toolchain: ${{ matrix.rust }} + targets: ${{ matrix.target }} + - run: cargo build --no-default-features --target ${{ matrix.target }} + + minimal-versions: + uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master + with: + working-directory: ${{ github.workflow }} + + test: + runs-on: ubuntu-latest + strategy: + matrix: + rust: + - 1.57.0 # MSRV + - stable + steps: + - uses: actions/checkout@v3 + - uses: RustCrypto/actions/cargo-cache@master + - 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 diff --git a/Cargo.lock b/Cargo.lock index 0b1a94da..d7038a23 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -37,16 +37,6 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" -[[package]] -name = "cipher" -version = "0.4.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad" -dependencies = [ - "crypto-common", - "inout", -] - [[package]] name = "const-oid" version = "0.9.2" @@ -139,15 +129,6 @@ dependencies = [ "proc-macro-hack", ] -[[package]] -name = "inout" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0c10553d664a4d0bcff9f4215d0aac67a639cc68ef660840afe309b807bc9f5" -dependencies = [ - "generic-array", -] - [[package]] name = "k12" version = "0.2.1" @@ -288,16 +269,6 @@ dependencies = [ "hex-literal", ] -[[package]] -name = "skein" -version = "0.1.0" -dependencies = [ - "block-buffer", - "cipher", - "digest", - "threefish", -] - [[package]] name = "sm3" version = "0.4.2" @@ -320,15 +291,6 @@ version = "2.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" -[[package]] -name = "threefish" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ed5052bf97d0685ca1622567f5324cc0c6012f69df5aec85ab07c4633855618" -dependencies = [ - "cipher", -] - [[package]] name = "tiger" version = "0.2.1" diff --git a/Cargo.toml b/Cargo.toml index 298a76e0..85c713c9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,6 @@ members = [ "sha2", "sha3", "shabal", - "skein", "sm3", "streebog", "tiger", @@ -25,6 +24,7 @@ members = [ exclude = [ "ascon-hash", "belt-hash", + "skein", ] [profile.dev]