Skip to content
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

feat: implement Authenticode parsing and verification without relying on OpenSSL #100

Merged
merged 43 commits into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
501450a
feat: draft implementation of authenticode parser
plusvic Apr 10, 2024
2b31e59
feat: get certificate chain for Authenticode signatures.
plusvic Apr 10, 2024
6c736ac
feat: advance in the implementation of Authenticode parser
plusvic Apr 11, 2024
b918435
feat: advance with the implementation of authenticode parser
plusvic Apr 12, 2024
74b23ac
feat: advance in the implementation of Authenticode parser.
plusvic Apr 15, 2024
42b4f32
feat: advance in the implementation of Authenticode parser.
plusvic Apr 16, 2024
1c6cbf5
feat: implement verification of Authenticode signatures.
plusvic Apr 17, 2024
428140d
chore: remove unused dependency
plusvic Apr 17, 2024
226d269
chore: remove unused feature
plusvic Apr 17, 2024
1b2c2b8
refactor: prepare for implementing countersignatures verification
plusvic Apr 17, 2024
1829de2
feat: advance in the implementation of Authenticode verification
plusvic Apr 18, 2024
f12fa6e
feat: more advances in the Authenticode implementation.
plusvic Apr 18, 2024
2170056
fix: issue in `hash` module.
plusvic Apr 18, 2024
ad46cfa
fix: some verification issues.
plusvic Apr 19, 2024
be6fad1
fix: issues while generating subject and issuer names
plusvic Apr 19, 2024
390f61a
feat: add support for DSA signatures
plusvic Apr 19, 2024
2d2229e
chore: don't include default features for `x509-verify` crate
plusvic Apr 19, 2024
551c459
feat: add support for SHA-512.
plusvic Apr 19, 2024
94cfd39
fix: add support for legacy object identifier `1.3.14.3.2.29`
plusvic Apr 19, 2024
42c73fa
fix: prevent panic in `oid_to_str` when the OID is not known.
plusvic Apr 19, 2024
12289f7
Merge branch 'main' into authenticode2
plusvic Apr 19, 2024
8772e20
fix: add missing import
plusvic Apr 19, 2024
7a424d3
Merge branch 'main' into authenticode2
plusvic Apr 19, 2024
1672d1c
Merge branch 'main' into authenticode2
plusvic Apr 19, 2024
32b3453
refactor: simplify `parse_content_info`
plusvic Apr 19, 2024
998ed3d
fix: broken code
plusvic Apr 19, 2024
847ef09
Merge branch 'main' into authenticode2
plusvic Apr 19, 2024
dd7e7e7
feat: Added support for non-canonically DER encoded (counter)signatur…
metthal Apr 22, 2024
c5ff4a5
Merge branch 'main' into authenticode2
plusvic Apr 22, 2024
f6a42d5
style: apply rustfmt and minor refactor
plusvic Apr 22, 2024
455fd3e
feat: draft implementation of authenticode parser using `der-parser`
plusvic Apr 25, 2024
eac72f5
feat: advance in the implementation of Authenticode parser
plusvic Apr 25, 2024
0f6bfa0
feat: advance with the implementation of Authenticode parser
plusvic Apr 26, 2024
6374496
refactor: more refactoring and code cleaning
plusvic Apr 26, 2024
57bdb3a
feat: add support DSA algorithm
plusvic Apr 27, 2024
a9b461a
fix: recognize obsolete OID.
plusvic Apr 27, 2024
a69140d
fix: implement the Authenticode hash algorithm according to the speci…
plusvic Apr 27, 2024
432659f
fix: issue while parsing nested signatures.
plusvic Apr 27, 2024
619939a
refactor: some refactor and documentation improvements.
plusvic Apr 28, 2024
9ed2358
perf: prevent unnecessary memory allocation.
plusvic Apr 28, 2024
4af2b72
style: code cleanup
plusvic Apr 29, 2024
d28b416
style: fix Clippy warning
plusvic Apr 29, 2024
eb7b4da
chore: `PublicKey::verify` is not used when the `x509-parser-verify` …
plusvic Apr 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,18 @@ jobs:
rust: stable
target: x86_64-unknown-linux-gnu
vcpkg_openssl_triplet: x64-linux-release
args: "--features=openssl-static"

- build: macos
os: macos-latest
rust: stable
target: x86_64-apple-darwin
vcpkg_openssl_triplet: x64-osx-release
args: "--features=openssl-static"

- build: windows
os: windows-latest
rust: stable
target: x86_64-pc-windows-msvc
vcpkg_openssl_triplet: x64-windows-static
args: ""

steps:
- name: Checkout sources
Expand Down Expand Up @@ -63,7 +60,7 @@ jobs:
token: ${{ github.token }}

- name: Build
run: cargo build --bin yr --profile release-lto --target ${{ matrix.target }} ${{ matrix.args }}
run: cargo build --bin yr --profile release-lto --target ${{ matrix.target }}
env:
RUSTFLAGS: "-C target-feature=+crt-static"
OPENSSL_DIR: "${{ github.workspace }}/vcpkg/installed/${{ matrix.vcpkg_openssl_triplet }}"
Expand Down
Loading
Loading