Skip to content

Commit c4e73cf

Browse files
authored
Import sources from RustCrypto/utils (#2)
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.
1 parent ce5a458 commit c4e73cf

File tree

286 files changed

+19861
-10
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

286 files changed

+19861
-10
lines changed

Diff for: .github/dependabot.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: cargo
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 10

Diff for: .github/workflows/base64ct.yml

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: base64ct
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "base64ct/**"
7+
- "Cargo.*"
8+
push:
9+
branches: master
10+
11+
defaults:
12+
run:
13+
working-directory: base64ct
14+
15+
env:
16+
CARGO_INCREMENTAL: 0
17+
RUSTFLAGS: "-Dwarnings"
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-latest
22+
strategy:
23+
matrix:
24+
rust:
25+
- 1.51.0 # MSRV
26+
- stable
27+
target:
28+
- thumbv7em-none-eabi
29+
- wasm32-unknown-unknown
30+
steps:
31+
- uses: actions/checkout@v1
32+
- uses: actions-rs/toolchain@v1
33+
with:
34+
profile: minimal
35+
toolchain: ${{ matrix.rust }}
36+
target: ${{ matrix.target }}
37+
override: true
38+
- run: cargo build --target ${{ matrix.target }} --release
39+
- run: cargo build --target ${{ matrix.target }} --release --features alloc
40+
41+
test:
42+
runs-on: ubuntu-latest
43+
strategy:
44+
matrix:
45+
rust:
46+
- 1.51.0 # MSRV
47+
- stable
48+
steps:
49+
- uses: actions/checkout@v1
50+
- uses: actions-rs/toolchain@v1
51+
with:
52+
profile: minimal
53+
toolchain: ${{ matrix.rust }}
54+
override: true
55+
- run: cargo test --release
56+
- run: cargo test --release --features alloc
57+
- run: cargo test --release --all-features

Diff for: .github/workflows/const-oid.yml

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: const-oid
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "const-oid/**"
7+
- "Cargo.*"
8+
push:
9+
branches: master
10+
11+
defaults:
12+
run:
13+
working-directory: const-oid
14+
15+
env:
16+
CARGO_INCREMENTAL: 0
17+
RUSTFLAGS: "-Dwarnings"
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-latest
22+
strategy:
23+
matrix:
24+
rust:
25+
- 1.51.0 # MSRV
26+
- stable
27+
target:
28+
- thumbv7em-none-eabi
29+
- wasm32-unknown-unknown
30+
steps:
31+
- uses: actions/checkout@v1
32+
- uses: actions-rs/toolchain@v1
33+
with:
34+
profile: minimal
35+
toolchain: ${{ matrix.rust }}
36+
target: ${{ matrix.target }}
37+
override: true
38+
- run: cargo build --target ${{ matrix.target }} --release
39+
40+
test:
41+
runs-on: ubuntu-latest
42+
strategy:
43+
matrix:
44+
rust:
45+
- 1.51.0 # MSRV
46+
- stable
47+
steps:
48+
- uses: actions/checkout@v1
49+
- uses: actions-rs/toolchain@v1
50+
with:
51+
profile: minimal
52+
toolchain: ${{ matrix.rust }}
53+
override: true
54+
- run: cargo test --release
55+
- run: cargo test --release --all-features

Diff for: .github/workflows/der.yml

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: der
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "const-oid/**"
7+
- "der/**"
8+
- "Cargo.*"
9+
push:
10+
branches: master
11+
12+
defaults:
13+
run:
14+
working-directory: der
15+
16+
env:
17+
CARGO_INCREMENTAL: 0
18+
RUSTFLAGS: "-Dwarnings"
19+
20+
jobs:
21+
build:
22+
runs-on: ubuntu-latest
23+
strategy:
24+
matrix:
25+
rust:
26+
- 1.51.0 # MSRV
27+
- stable
28+
target:
29+
- thumbv7em-none-eabi
30+
- wasm32-unknown-unknown
31+
steps:
32+
- uses: actions/checkout@v1
33+
- uses: actions-rs/toolchain@v1
34+
with:
35+
profile: minimal
36+
toolchain: ${{ matrix.rust }}
37+
target: ${{ matrix.target }}
38+
override: true
39+
- run: cargo build --target ${{ matrix.target }} --release
40+
- run: cargo build --target ${{ matrix.target }} --release --features bigint
41+
- run: cargo build --target ${{ matrix.target }} --release --features oid
42+
- run: cargo build --target ${{ matrix.target }} --release --features bigint,oid
43+
44+
test:
45+
runs-on: ubuntu-latest
46+
strategy:
47+
matrix:
48+
include:
49+
# 32-bit Linux
50+
- target: i686-unknown-linux-gnu
51+
rust: 1.51.0 # MSRV
52+
deps: sudo apt update && sudo apt install gcc-multilib
53+
- target: i686-unknown-linux-gnu
54+
rust: stable
55+
deps: sudo apt update && sudo apt install gcc-multilib
56+
57+
# 64-bit Linux
58+
- target: x86_64-unknown-linux-gnu
59+
rust: 1.51.0 # MSRV
60+
- target: x86_64-unknown-linux-gnu
61+
rust: stable
62+
steps:
63+
- uses: actions/checkout@v1
64+
- uses: actions-rs/toolchain@v1
65+
with:
66+
toolchain: ${{ matrix.rust }}
67+
target: ${{ matrix.target }}
68+
profile: minimal
69+
override: true
70+
- run: ${{ matrix.deps }}
71+
- run: cargo test --target ${{ matrix.target }} --release
72+
- run: cargo test --target ${{ matrix.target }} --release --features bigint
73+
- run: cargo test --target ${{ matrix.target }} --release --features oid
74+
- run: cargo test --target ${{ matrix.target }} --release --all-features

Diff for: .github/workflows/pem-rfc7468.yml

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: pem-rfc7468
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "base64ct/**"
7+
- "pem-rfc7468/**"
8+
- "Cargo.*"
9+
push:
10+
branches: master
11+
12+
defaults:
13+
run:
14+
working-directory: pem-rfc7468
15+
16+
env:
17+
CARGO_INCREMENTAL: 0
18+
RUSTFLAGS: "-Dwarnings"
19+
20+
jobs:
21+
build:
22+
runs-on: ubuntu-latest
23+
strategy:
24+
matrix:
25+
rust:
26+
- 1.51.0 # MSRV
27+
- stable
28+
target:
29+
- thumbv7em-none-eabi
30+
- wasm32-unknown-unknown
31+
steps:
32+
- uses: actions/checkout@v1
33+
- uses: actions-rs/toolchain@v1
34+
with:
35+
profile: minimal
36+
toolchain: ${{ matrix.rust }}
37+
target: ${{ matrix.target }}
38+
override: true
39+
- run: cargo build --target ${{ matrix.target }} --release
40+
- run: cargo build --target ${{ matrix.target }} --release --features alloc
41+
42+
test:
43+
runs-on: ubuntu-latest
44+
strategy:
45+
matrix:
46+
rust:
47+
- 1.51.0 # MSRV
48+
- stable
49+
steps:
50+
- uses: actions/checkout@v1
51+
- uses: actions-rs/toolchain@v1
52+
with:
53+
profile: minimal
54+
toolchain: ${{ matrix.rust }}
55+
override: true
56+
- run: cargo test --release --no-default-features
57+
- run: cargo test --release
58+
- run: cargo test --release --all-features

Diff for: .github/workflows/pkcs1.yml

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: pkcs1
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "base64ct/**"
7+
- "const-oid/**"
8+
- "der/**"
9+
- "pkcs1/**"
10+
- "Cargo.*"
11+
push:
12+
branches: master
13+
14+
defaults:
15+
run:
16+
working-directory: pkcs1
17+
18+
env:
19+
CARGO_INCREMENTAL: 0
20+
RUSTFLAGS: "-Dwarnings"
21+
22+
jobs:
23+
build:
24+
runs-on: ubuntu-latest
25+
strategy:
26+
matrix:
27+
rust:
28+
- 1.51.0 # MSRV
29+
- stable
30+
target:
31+
- thumbv7em-none-eabi
32+
- wasm32-unknown-unknown
33+
steps:
34+
- uses: actions/checkout@v1
35+
- uses: actions-rs/toolchain@v1
36+
with:
37+
profile: minimal
38+
toolchain: ${{ matrix.rust }}
39+
target: ${{ matrix.target }}
40+
override: true
41+
- run: cargo build --target ${{ matrix.target }} --release --no-default-features
42+
43+
test:
44+
runs-on: ubuntu-latest
45+
strategy:
46+
matrix:
47+
rust:
48+
- 1.51.0 # MSRV
49+
- stable
50+
steps:
51+
- uses: actions/checkout@v1
52+
- uses: actions-rs/toolchain@v1
53+
with:
54+
profile: minimal
55+
toolchain: ${{ matrix.rust }}
56+
override: true
57+
- run: cargo test --release --no-default-features
58+
- run: cargo test --release
59+
- run: cargo test --release --all-features

Diff for: .github/workflows/pkcs5.yml

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: pkcs5
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "const-oid/**"
7+
- "der/**"
8+
- "pkcs5/**"
9+
- "spki/**"
10+
- "Cargo.*"
11+
push:
12+
branches: master
13+
14+
defaults:
15+
run:
16+
working-directory: pkcs5
17+
18+
env:
19+
CARGO_INCREMENTAL: 0
20+
RUSTFLAGS: "-Dwarnings"
21+
22+
jobs:
23+
build:
24+
runs-on: ubuntu-latest
25+
strategy:
26+
matrix:
27+
rust:
28+
- 1.51.0 # MSRV
29+
- stable
30+
target:
31+
- thumbv7em-none-eabi
32+
- wasm32-unknown-unknown
33+
steps:
34+
- uses: actions/checkout@v1
35+
- uses: actions-rs/toolchain@v1
36+
with:
37+
profile: minimal
38+
toolchain: ${{ matrix.rust }}
39+
target: ${{ matrix.target }}
40+
override: true
41+
- run: cargo build --target ${{ matrix.target }} --release
42+
- run: cargo build --target ${{ matrix.target }} --release --features alloc
43+
- run: cargo build --target ${{ matrix.target }} --release --features pbes2
44+
- run: cargo build --target ${{ matrix.target }} --release --features scrypt
45+
- run: cargo build --target ${{ matrix.target }} --release --features alloc,pbes2
46+
- run: cargo build --target ${{ matrix.target }} --release --features sha1
47+
- run: cargo build --target ${{ matrix.target }} --release --features 3des
48+
- run: cargo build --target ${{ matrix.target }} --release --features des-insecure
49+
50+
test:
51+
runs-on: ubuntu-latest
52+
strategy:
53+
matrix:
54+
rust:
55+
- 1.51.0 # MSRV
56+
- stable
57+
steps:
58+
- uses: actions/checkout@v1
59+
- uses: actions-rs/toolchain@v1
60+
with:
61+
profile: minimal
62+
toolchain: ${{ matrix.rust }}
63+
override: true
64+
- run: cargo test --release
65+
- run: cargo test --release --features alloc
66+
- run: cargo test --release --features pbes2
67+
- run: cargo test --release --features scrypt
68+
- run: cargo test --release --features sha1
69+
- run: cargo test --release --features 3des
70+
- run: cargo test --release --features des-insecure
71+
- run: cargo test --release --all-features

0 commit comments

Comments
 (0)