Skip to content

Commit

Permalink
Import sources from RustCrypto/utils (#2)
Browse files Browse the repository at this point in the history
Crates in this repo were originally developed at:

https://github.com/rustcrypto/utils

They were imported as of this commit:

    commit c60c25672e1c6d06b74b7d1aa6a9a19935d71e25
    Author: Daniel James <dwhjames@gmail.com>
    Date:   Tue Sep 14 06:01:54 2021 -0700

    expand algorithm coverage for PBES2-PBKDF2 (#633)

This commit also includes some tweaks to move the repo, e.g. updating
links to point to the new location.
  • Loading branch information
tarcieri authored Sep 14, 2021
1 parent ce5a458 commit c4e73cf
Show file tree
Hide file tree
Showing 286 changed files with 19,861 additions and 10 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: cargo
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
57 changes: 57 additions & 0 deletions .github/workflows/base64ct.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: base64ct

on:
pull_request:
paths:
- "base64ct/**"
- "Cargo.*"
push:
branches: master

defaults:
run:
working-directory: base64ct

env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Dwarnings"

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.51.0 # MSRV
- stable
target:
- thumbv7em-none-eabi
- wasm32-unknown-unknown
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- run: cargo build --target ${{ matrix.target }} --release
- run: cargo build --target ${{ matrix.target }} --release --features alloc

test:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.51.0 # MSRV
- stable
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- run: cargo test --release
- run: cargo test --release --features alloc
- run: cargo test --release --all-features
55 changes: 55 additions & 0 deletions .github/workflows/const-oid.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: const-oid

on:
pull_request:
paths:
- "const-oid/**"
- "Cargo.*"
push:
branches: master

defaults:
run:
working-directory: const-oid

env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Dwarnings"

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.51.0 # MSRV
- stable
target:
- thumbv7em-none-eabi
- wasm32-unknown-unknown
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- run: cargo build --target ${{ matrix.target }} --release

test:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.51.0 # MSRV
- stable
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- run: cargo test --release
- run: cargo test --release --all-features
74 changes: 74 additions & 0 deletions .github/workflows/der.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: der

on:
pull_request:
paths:
- "const-oid/**"
- "der/**"
- "Cargo.*"
push:
branches: master

defaults:
run:
working-directory: der

env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Dwarnings"

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.51.0 # MSRV
- stable
target:
- thumbv7em-none-eabi
- wasm32-unknown-unknown
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- run: cargo build --target ${{ matrix.target }} --release
- run: cargo build --target ${{ matrix.target }} --release --features bigint
- run: cargo build --target ${{ matrix.target }} --release --features oid
- run: cargo build --target ${{ matrix.target }} --release --features bigint,oid

test:
runs-on: ubuntu-latest
strategy:
matrix:
include:
# 32-bit Linux
- target: i686-unknown-linux-gnu
rust: 1.51.0 # MSRV
deps: sudo apt update && sudo apt install gcc-multilib
- target: i686-unknown-linux-gnu
rust: stable
deps: sudo apt update && sudo apt install gcc-multilib

# 64-bit Linux
- target: x86_64-unknown-linux-gnu
rust: 1.51.0 # MSRV
- target: x86_64-unknown-linux-gnu
rust: stable
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
profile: minimal
override: true
- run: ${{ matrix.deps }}
- run: cargo test --target ${{ matrix.target }} --release
- run: cargo test --target ${{ matrix.target }} --release --features bigint
- run: cargo test --target ${{ matrix.target }} --release --features oid
- run: cargo test --target ${{ matrix.target }} --release --all-features
58 changes: 58 additions & 0 deletions .github/workflows/pem-rfc7468.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: pem-rfc7468

on:
pull_request:
paths:
- "base64ct/**"
- "pem-rfc7468/**"
- "Cargo.*"
push:
branches: master

defaults:
run:
working-directory: pem-rfc7468

env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Dwarnings"

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.51.0 # MSRV
- stable
target:
- thumbv7em-none-eabi
- wasm32-unknown-unknown
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- run: cargo build --target ${{ matrix.target }} --release
- run: cargo build --target ${{ matrix.target }} --release --features alloc

test:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.51.0 # MSRV
- stable
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- run: cargo test --release --no-default-features
- run: cargo test --release
- run: cargo test --release --all-features
59 changes: 59 additions & 0 deletions .github/workflows/pkcs1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: pkcs1

on:
pull_request:
paths:
- "base64ct/**"
- "const-oid/**"
- "der/**"
- "pkcs1/**"
- "Cargo.*"
push:
branches: master

defaults:
run:
working-directory: pkcs1

env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Dwarnings"

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.51.0 # MSRV
- stable
target:
- thumbv7em-none-eabi
- wasm32-unknown-unknown
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- run: cargo build --target ${{ matrix.target }} --release --no-default-features

test:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.51.0 # MSRV
- stable
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- run: cargo test --release --no-default-features
- run: cargo test --release
- run: cargo test --release --all-features
71 changes: 71 additions & 0 deletions .github/workflows/pkcs5.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: pkcs5

on:
pull_request:
paths:
- "const-oid/**"
- "der/**"
- "pkcs5/**"
- "spki/**"
- "Cargo.*"
push:
branches: master

defaults:
run:
working-directory: pkcs5

env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Dwarnings"

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.51.0 # MSRV
- stable
target:
- thumbv7em-none-eabi
- wasm32-unknown-unknown
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- run: cargo build --target ${{ matrix.target }} --release
- run: cargo build --target ${{ matrix.target }} --release --features alloc
- run: cargo build --target ${{ matrix.target }} --release --features pbes2
- run: cargo build --target ${{ matrix.target }} --release --features scrypt
- run: cargo build --target ${{ matrix.target }} --release --features alloc,pbes2
- run: cargo build --target ${{ matrix.target }} --release --features sha1
- run: cargo build --target ${{ matrix.target }} --release --features 3des
- run: cargo build --target ${{ matrix.target }} --release --features des-insecure

test:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.51.0 # MSRV
- stable
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- run: cargo test --release
- run: cargo test --release --features alloc
- run: cargo test --release --features pbes2
- run: cargo test --release --features scrypt
- run: cargo test --release --features sha1
- run: cargo test --release --features 3des
- run: cargo test --release --features des-insecure
- run: cargo test --release --all-features
Loading

0 comments on commit c4e73cf

Please sign in to comment.