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

On chain DCAP verification #134

Merged
merged 80 commits into from
Jan 26, 2023
Merged
Show file tree
Hide file tree
Changes from 79 commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
b357766
Initial version of on chain verification
Niederb Oct 19, 2022
79ef017
Rename from report to quote
Niederb Oct 19, 2022
c23602d
Add unit tests for decoding
Niederb Oct 19, 2022
c92fee2
Implement signature check for TcbInfo and QeIdentity
Niederb Oct 20, 2022
95b0fa8
Cleanup
Niederb Oct 20, 2022
31a92d4
Documentation
Niederb Oct 20, 2022
cb22546
Use size_of from core instead of std
Niederb Oct 20, 2022
d4ff21e
Deserialize EnclaveIdentity
Niederb Oct 20, 2022
f140785
Refactor into smaller methods
Niederb Oct 21, 2022
e978941
Add collateral data and improve tests
Niederb Oct 21, 2022
59ea772
Improve test
Niederb Oct 21, 2022
d8f27f7
Work on CRL parsing
Niederb Oct 24, 2022
3617bdc
Make hex compatible to no_std
Niederb Oct 24, 2022
9e92430
Change license just in case...
Niederb Oct 25, 2022
d61f9f7
Cleanup
Niederb Oct 26, 2022
6855ab2
Cleanup
Niederb Oct 26, 2022
9f6d7e9
Cleanup
Niederb Oct 26, 2022
5f635e7
Add data structures for TcbInfo collateral
Niederb Nov 2, 2022
b7f027c
Work towards registering the quoting enclave
Niederb Nov 2, 2022
5d213cc
Work towards registering the tcb info
Niederb Nov 10, 2022
16bbafc
Adjust weights to polkadot-v0.9.29
Niederb Nov 10, 2022
d533fb4
Switch to ring-xous
Niederb Nov 14, 2022
f5d7045
Improve error handling and logging
Niederb Nov 14, 2022
cac38fe
Cleanups and documentation
Niederb Nov 14, 2022
e52877f
Get rid of dangerous unwrap
Niederb Nov 14, 2022
f3f5335
Error handling and cleanup
Niederb Nov 15, 2022
aed6aca
Switch to collateral version v4
Niederb Nov 18, 2022
cec768e
Switch to DateTime instead of String
Niederb Nov 18, 2022
aebbd8d
Move collateral data to separate file
Niederb Nov 18, 2022
8ba58ce
Add more validation logic and tests
Niederb Nov 18, 2022
f6a8664
Improve collateral handling and work towards registering the quoting …
Niederb Nov 29, 2022
045b219
Switch license to GPL-3.0
Niederb Nov 29, 2022
c00a9cf
Register quoting enclave
Niederb Dec 5, 2022
7d78c23
Add check for mrenclave
Niederb Dec 5, 2022
b633e8b
More checks and error-handling
Niederb Dec 7, 2022
b2842ae
Deserialize more parts of the collateral
Niederb Dec 7, 2022
b32abe5
Remove unneccessary check
Niederb Dec 7, 2022
10ab7a3
Expand checks for quoting enclave
Niederb Dec 7, 2022
30872f9
Add dummy support to register TCB info
Niederb Dec 13, 2022
96e700d
Add code to extract certificate information
Niederb Dec 14, 2022
9b62fda
Rename ias-verify crate to sgx-verify as it verifies dcap as well
Niederb Dec 14, 2022
0964790
Work towards storing TCB info on chain
Niederb Dec 14, 2022
c24ddc3
Store TCB info on chain
Niederb Dec 15, 2022
c5b5404
Store TCB info on chain
Niederb Dec 16, 2022
5ec2db2
Define fmspc as byte array
Niederb Dec 16, 2022
da80282
Store the correct FMSPC
Niederb Dec 19, 2022
eebc305
Verify TCB info
Niederb Dec 19, 2022
2893717
Verify TCB info
Niederb Dec 20, 2022
23d1363
Add register_quoting_enclave unittest
Niederb Dec 21, 2022
5b90c2a
Add register_tcb_info unittest
Niederb Dec 21, 2022
28c4942
Make the add_and_remove_dcap_enclave_works test work again
Niederb Dec 21, 2022
add6117
Add a check to prevent out of memory issues
Niederb Dec 22, 2022
3e95d98
Cleanup
Niederb Dec 22, 2022
625a108
Clippy fixes
Niederb Dec 22, 2022
c318d5a
Deal with potential errors that happen during DER encoding
Niederb Dec 22, 2022
06f6ec8
Separate verification and putting collateral on chain more strictly
Niederb Dec 22, 2022
fb0907a
Cleanup log messages
Niederb Jan 3, 2023
ee2fc28
Add some fuzz tests
Niederb Jan 3, 2023
e86d15c
Remove unnecessary pub
Niederb Jan 3, 2023
559e7f5
Merge branch 'master' into tn/continue-verification
Niederb Jan 3, 2023
56dbece
Update Cargo.lock after merge and fix clippy issues
Niederb Jan 3, 2023
8963af7
Fix clippy issue
Niederb Jan 3, 2023
104a30b
Fix test issues
Niederb Jan 3, 2023
d515545
Remove unused code
Niederb Jan 10, 2023
3276f90
Move the code for the unfinished CRL handling into a unit test
Niederb Jan 11, 2023
fea5122
Make clippy happy
Niederb Jan 11, 2023
6c2c2d7
Add comment on how to extract the code for a certificate anchor
Niederb Jan 11, 2023
21a18fc
Add fuzz test for extract_tcb_info
Niederb Jan 12, 2023
41b91e4
Cleanup and documentation
Niederb Jan 12, 2023
8239373
Incorporate review feedback
Niederb Jan 18, 2023
a30d027
Introduce type alias for mrsigner and mrenclave
Niederb Jan 18, 2023
05f6e14
Incorporate review feedback
Niederb Jan 18, 2023
76bedfb
Incorporate review feedback
Niederb Jan 19, 2023
771d404
Incorporate review feedback
Niederb Jan 19, 2023
a9e183e
Add another fuzz test
Niederb Jan 19, 2023
cf736bc
Enable std features for std-compilation
Niederb Jan 19, 2023
0d0d3d9
Cleanup
Niederb Jan 19, 2023
3865a53
Incorporate review feedback
Niederb Jan 19, 2023
5b715ea
Add clarifying comment
Niederb Jan 23, 2023
4151aa5
Merge branch 'master' into tn/continue-verification
Niederb Jan 26, 2023
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
227 changes: 177 additions & 50 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ members = [
"teerex",
"parentchain",
"sidechain",
"teerex/ias-verify",
"teerex/sgx-verify",
"teeracle",
"test-utils",
"xcm-transactor",
Expand Down
Loading