-
Notifications
You must be signed in to change notification settings - Fork 11
Structural Refactor #87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
stevefan1999-personal
wants to merge
102
commits into
RustCrypto:master
Choose a base branch
from
stevefan1999-personal:patch-refactor
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
102 commits
Select commit
Hold shift + click to select a range
2946461
refactor the whole structure
stevefan1999-personal 7e5bd91
fixup! refactor the whole structure
stevefan1999-personal 8f93ce9
remove derive_more
stevefan1999-personal 7e73263
let tls suite features be optional
stevefan1999-personal 0132366
remove useless code
stevefan1999-personal cff0bff
enhance feature selection
stevefan1999-personal 5f49b10
fix references
stevefan1999-personal 66478de
spread der feature to various format
stevefan1999-personal c952b8f
make sure more features are correctly separated
stevefan1999-personal d5ae16b
rsa: make pkcs1 independent
stevefan1999-personal 65d74f9
ensure a fallback slice when tls 1.2 is disabled
stevefan1999-personal 680cbcd
fixup! make sure more features are correctly separated
stevefan1999-personal d31abc4
upgrade dependencies
stevefan1999-personal bfa3dfb
require pkcs8 for pkcs1 decode in rsa
stevefan1999-personal 8934e0f
Merge branch 'master' of https://github.com/RustCrypto/rustls-rustcryβ¦
stevefan1999-personal c8911d4
enable all suites when testing
stevefan1999-personal 1a03061
add experimental CCM support
stevefan1999-personal 53eb412
add a more comprehensive test method
stevefan1999-personal 634e212
fix getrandom by fixating feature when building for wasm
stevefan1999-personal 9d44f14
fix getrandom problem with unsupported target
stevefan1999-personal f2eba45
enable ccm for openssl test suite
stevefan1999-personal bfac1b0
fix length for Aes128Ccm8
stevefan1999-personal edd6c4e
fix wrong aead algorithm for TLS13_AES_128_CCM_8_SHA256
stevefan1999-personal 5c11f64
update Cargo.lock for OpenSSL test
stevefan1999-personal 7b4a773
fixup! fix wrong aead algorithm for TLS13_AES_128_CCM_8_SHA256
stevefan1999-personal a625d9c
update readme to expand the supported cipher suites
stevefan1999-personal b8598da
update readme to remove production warning
stevefan1999-personal 3d554e7
remove aes feature from aes-gcm and manually define the type instead
stevefan1999-personal 3f8520d
add a static assertion to make sure at least one suite is available
stevefan1999-personal 74fabd8
use spki independently
stevefan1999-personal eb1f2c3
remove std and alloc implied feature to bare minimum instead
stevefan1999-personal 051219e
save the base name for round trip test
stevefan1999-personal 16c1411
feature revamp and implementing the last hash feature todo
stevefan1999-personal a7d55e3
allow p521 to be tested by openssl
stevefan1999-personal 1ed2a27
add x448 support
stevefan1999-personal a74fa6d
patch crrl for mishandling dependencies
stevefan1999-personal b22eabf
remove unnecessary mod redirection
stevefan1999-personal 4b6bbc7
don't include the root cert in the cert chain for the fake resolver
stevefan1999-personal 7ffad43
simplify and reinforce feature selection
stevefan1999-personal 30f82f6
chore: upgrade code
stevefan1999-personal 38ce929
add devfile
stevefan1999-personal 34b4347
add vscode extension recommendations
stevefan1999-personal fe2150c
upgrade to latest rustcrypto crates
72311f3
Refactor dependencies and update cryptographic implementations
stevefan1999-personal 069b79e
Enhance cryptographic implementations with generic hash and HMAC struβ¦
stevefan1999-personal 8994135
Update GitHub Actions workflow to use Rust 1.85.0 and improve job conβ¦
stevefan1999-personal 9a1e6b4
Update Rust toolchain to version 1.88.0 in CI workflow and Cargo.toml
stevefan1999-personal 9ec1985
Refactor: Replace ConstDefault with Default for various structures anβ¦
stevefan1999-personal d5351b3
Remove unused dependencies
stevefan1999-personal c9dd194
Set RUSTFLAGS for custom getrandom_backend in build and test jobs
stevefan1999-personal 07c3d40
Remove redundant RUSTFLAGS from cross test job in CI workflow
stevefan1999-personal 98ae4cf
Enhance CI workflow: Add caching for Rust toolchain, Cargo registry, β¦
stevefan1999-personal 36a0a82
Refactor: Move common module imports to explicit_nonce for clarity anβ¦
stevefan1999-personal 5ba80dd
Enhance CI workflow: Expand target matrix for cross job to include adβ¦
stevefan1999-personal 7f3d8a8
fixup! Enhance CI workflow: Expand target matrix for cross job to incβ¦
stevefan1999-personal 4699eb0
Refactor CI workflow: Replace manual caching with houseabsolute/actioβ¦
stevefan1999-personal a171434
Refactor CI workflow: Replace manual caching with Swatinem/rust-cacheβ¦
stevefan1999-personal 091a148
Enhance CI workflow: Integrate sccache for improved build caching andβ¦
stevefan1999-personal ed9e1e7
fixup! Enhance CI workflow: Integrate sccache for improved build cachβ¦
stevefan1999-personal 2db6ce0
Add rustls real socket test with TLS server and client implementation
stevefan1999-personal 61acd2f
fixup! Add rustls real socket test with TLS server and client implemeβ¦
stevefan1999-personal a533ca3
Update ESP32 test configuration: Set target for Rust toolchain and spβ¦
stevefan1999-personal 3252670
Update ESP32 test build process: Use release profile and correct artiβ¦
stevefan1999-personal 36719ec
Refactor ESP32 test workflow: Simplify environment setup and improve β¦
stevefan1999-personal fbee122
Update ESP32 test workflow: Change ESP_IDF_TOOLS_INSTALL_DIR to custoβ¦
stevefan1999-personal 4039392
fixup! Update ESP32 test workflow: Change ESP_IDF_TOOLS_INSTALL_DIR tβ¦
stevefan1999-personal 5d3c95c
Update rustls version in Cargo.toml for esp32-test and rustls-real-soβ¦
stevefan1999-personal efc4f60
Remove TLS handshake IO handling from server and client functions
stevefan1999-personal e67c410
Remove commented-out code and clarify ED25519 key support in TryFrom β¦
stevefan1999-personal 9741739
Update ESP32 test workflow artifact path
stevefan1999-personal f32f5cd
Enhance documentation and validation for rustls-rustcrypto
stevefan1999-personal d6b80b0
Refactor ECDSA implementation by consolidating curve and hash algoritβ¦
stevefan1999-personal 093276a
Add comprehensive cipher suite combination testing script and GitHub β¦
stevefan1999-personal c3666ca
fixup! Add comprehensive cipher suite combination testing script and β¦
stevefan1999-personal b58c68d
Refactor cipher suite testing workflow by removing hash algorithm inpβ¦
stevefan1999-personal 85115fa
Remove comprehensive cipher suite matrix testing workflow for simplifβ¦
stevefan1999-personal c59dfc7
Rename workflow from 'rustls-rustcrypto' to 'Unit Tests' for clarity
stevefan1999-personal 4aafdf7
OpenSSL test workflow rename and cache improvement
stevefan1999-personal d961f5b
Add support for Ed448 signature verification and update dependencies
stevefan1999-personal 7399095
Add Ed448 signature support and implement related structures
stevefan1999-personal cd3752c
fixup! Add Ed448 signature support and implement related structures
stevefan1999-personal 365820c
Refactor TLS cipher suite definitions and verification algorithms
e25274f
Update rustls dependency to version 0.23.31 in local_ping_pong_openssl
stevefan1999-personal 75c1104
fix x448 to 0.14.0-pre.0 due to API changes
stevefan1999-personal 0949753
Update ESP32 test workflow to specify build artifact paths
stevefan1999-personal ac05ecf
Delete unnecessary files
stevefan1999-personal b800be2
Remove target from esp32-test gitignore
stevefan1999-personal 4fae7b4
Fixing documentations
stevefan1999-personal dfb0728
Implement QUIC header and packet protection key
stevefan1999-personal 350e0f2
Implement ticketer
stevefan1999-personal 4b3ca1c
Add QUIC test
stevefan1999-personal 5253a1c
fixup! Add QUIC test
stevefan1999-personal cb29f60
fixup! fixup! Add QUIC test
stevefan1999-personal 089ce91
fixup! fixup! fixup! Add QUIC test
stevefan1999-personal 91325b4
Slient some clippy warnings
stevefan1999-personal 78f7521
fixup! Slient some clippy warnings
stevefan1999-personal 81e24eb
Remove unused "logging" feature from dependencies in Cargo.toml
stevefan1999-personal 993ecee
Add Aes128Ccm support for QUIC and update dependencies in Cargo.toml
stevefan1999-personal 69806e6
fixup! Add Aes128Ccm support for QUIC and update dependencies in Cargβ¦
stevefan1999-personal b6e038b
Run dos2unix to convert crlf to lf
stevefan1999-personal 0a9ee56
Add thiserror for error handling and update dependencies
stevefan1999-personal aac5950
fixup! Add thiserror for error handling and update dependencies
stevefan1999-personal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,74 @@ | ||
name: ESP32 Test Build | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
paths: | ||
- 'validation/esp32-test/**' | ||
- '.github/workflows/esp32-test.yml' | ||
pull_request: | ||
paths: | ||
- 'validation/esp32-test/**' | ||
- '.github/workflows/esp32-test.yml' | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
ESP_IDF_VERSION: v5.4.2 | ||
ESP_IDF_TOOLS_INSTALL_DIR: custom:/opt/esp | ||
SCCACHE_GHA_ENABLED: "true" | ||
RUSTC_WRAPPER: "sccache" | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Cache ESP-IDF | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.espressif | ||
/opt/esp | ||
key: ${{ runner.os }}-espidf-${{ env.ESP_IDF_VERSION }}- | ||
restore-keys: | | ||
${{ runner.os }}-espidf-${{ env.ESP_IDF_VERSION }}- | ||
${{ runner.os }}-espidf- | ||
|
||
- name: Set up Rust | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: nightly | ||
components: rust-src | ||
target: riscv32imac-unknown-none-elf | ||
- name: Setup SCCache | ||
uses: mozilla-actions/[email protected] | ||
|
||
- name: Cache Cargo | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
workspaces: "validation/esp32-test" | ||
|
||
- name: Setup ldproxy | ||
uses: taiki-e/cache-cargo-install-action@v2 | ||
with: | ||
tool: ldproxy | ||
|
||
- name: Build ESP32 test | ||
working-directory: validation/esp32-test | ||
run: | | ||
cargo build --release | ||
|
||
- name: Upload build artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: esp32-test-build | ||
path: | | ||
validation/esp32-test/target/riscv32imac-esp-espidf/release/partition-table.bin | ||
validation/esp32-test/target/riscv32imac-esp-espidf/release/esp32-test | ||
validation/esp32-test/target/riscv32imac-esp-espidf/release/bootloader.bin | ||
retention-days: 30 |
This file contains hidden or 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 |
---|---|---|
@@ -1,37 +1,41 @@ | ||
name: validate-local-openssl | ||
|
||
defaults: | ||
run: | ||
working-directory: validation/local_ping_pong_openssl | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- README.md | ||
push: | ||
branches: master | ||
paths-ignore: | ||
- README.md | ||
|
||
permissions: | ||
contents: read | ||
|
||
env: | ||
CARGO_INCREMENTAL: 0 | ||
RUSTFLAGS: "-Dwarnings" | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
toolchain: | ||
- stable | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: RustCrypto/actions/cargo-cache@master | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{ matrix.toolchain }} | ||
- name: Test against OpenSSL locally | ||
run: cargo test | ||
name: OpenSSL Local Comparison Tests | ||
|
||
defaults: | ||
run: | ||
working-directory: validation/local_ping_pong_openssl | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- README.md | ||
push: | ||
branches: [master] | ||
paths-ignore: | ||
- README.md | ||
|
||
permissions: | ||
contents: read | ||
|
||
env: | ||
CARGO_INCREMENTAL: 0 | ||
RUSTFLAGS: "-Dwarnings" | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
toolchain: | ||
- stable | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{ matrix.toolchain }} | ||
- uses: mozilla-actions/[email protected] | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: Test against OpenSSL locally | ||
run: cargo test | ||
env: | ||
SCCACHE_GHA_ENABLED: "true" | ||
RUSTC_WRAPPER: "sccache" |
This file contains hidden or 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,60 @@ | ||
name: Rustls Real World Test | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
paths: | ||
- 'validation/rustls-real-socket-test/**' | ||
- 'validation/quic-test/**' | ||
- '.github/workflows/rustls-real-socket-test.yml' | ||
pull_request: | ||
paths: | ||
- 'validation/rustls-real-socket-test/**' | ||
- 'validation/quic-test/**' | ||
- '.github/workflows/rustls-real-socket-test.yml' | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Rust | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Setup SCCache | ||
uses: mozilla-actions/[email protected] | ||
|
||
- name: Cache Cargo | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
workspaces: | | ||
validation/rustls-real-socket-test | ||
validation/quic-test | ||
|
||
- name: Run in real socket test release mode | ||
working-directory: validation/rustls-real-socket-test | ||
run: cargo run --release | ||
env: | ||
SCCACHE_GHA_ENABLED: "true" | ||
RUSTC_WRAPPER: "sccache" | ||
|
||
- name: Run in QUIC test release mode | ||
working-directory: validation/quic-test | ||
run: cargo run --release | ||
env: | ||
SCCACHE_GHA_ENABLED: "true" | ||
RUSTC_WRAPPER: "sccache" | ||
|
||
- name: Upload build artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: rustls-real-socket-test-release | ||
path: | | ||
validation/rustls-real-socket-test/target/release/ | ||
retention-days: 30 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we leave these sort of changes to separate PR