-
Notifications
You must be signed in to change notification settings - Fork 45
Sync state from fellow validateer #615
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
Merged
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
5e52beb
rename request_keys to sync_state
haerdib 0d275c9
rename request_key_prov to request_state_prov
haerdib 0ae2893
rename request_keys.rs to sync_state.rs
haerdib dc40dd0
restructure key and state provisioning server
haerdib fc3e318
some refactoring
haerdib d5b5f16
add TlsServer struct
haerdib 14b24fe
add test file
haerdib 4470b4e
rename key_provision_server to state_provisioning_server
haerdib 688214d
add unit test
haerdib 7389461
update unit test
haerdib 37b454f
introduce mockable key handler struct
haerdib ada4ab8
shielding key success
haerdib 385864d
remove clippy warnings
haerdib f725377
fix test
haerdib 5a006e6
add unit tests for KeyHandler
haerdib 3be9d6a
rename to prepare for state inclusion
haerdib 1fb37a3
rename seal_handler
haerdib e29edf1
add shard as argument to sync state
haerdib 09f7934
some more renaming
haerdib e90cf68
add shard read & write process
haerdib e2e684f
[SealHandler] add unit tests & fix state
haerdib 93fde21
update networking test to include state
haerdib 659e83c
add default shard
haerdib adaa20c
add some documentation
haerdib 2f5be11
remove ugly for loop
haerdib 80f8061
move authentications to separate file
haerdib f8dd5ca
update comment
haerdib 928d516
remove obsolete, never ending loop
haerdib 92290db
add error logs
haerdib 4e996d9
remove extra phantom field
haerdib 5536dd1
add sgx feature flag
haerdib 10fc847
remove global variables from test
haerdib a8d31fc
add join handle to test
haerdib b7f1e97
add some more logging info
haerdib 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
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
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
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
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
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
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,55 @@ | ||
| /* | ||
| Copyright 2021 Integritee AG and Supercomputing Systems AG | ||
|
|
||
| Licensed under the Apache License, Version 2.0 (the "License"); | ||
| you may not use this file except in compliance with the License. | ||
| You may obtain a copy of the License at | ||
|
|
||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
|
|
||
| */ | ||
|
|
||
| use crate::{ | ||
| error::{Error, Result}, | ||
| Aes, | ||
| }; | ||
| use itp_sgx_io::SealedIO; | ||
| use sgx_crypto_helper::rsa3072::Rsa3072KeyPair; | ||
|
|
||
| #[derive(Default)] | ||
| pub struct AesSealMock {} | ||
|
|
||
| impl SealedIO for AesSealMock { | ||
| type Error = Error; | ||
| type Unsealed = Aes; | ||
|
|
||
| fn unseal() -> Result<Self::Unsealed> { | ||
| Ok(Aes::default()) | ||
| } | ||
|
|
||
| fn seal(_unsealed: Self::Unsealed) -> Result<()> { | ||
| Ok(()) | ||
| } | ||
| } | ||
|
|
||
| #[derive(Default)] | ||
| pub struct Rsa3072SealMock {} | ||
|
|
||
| impl SealedIO for Rsa3072SealMock { | ||
| type Error = Error; | ||
| type Unsealed = Rsa3072KeyPair; | ||
|
|
||
| fn unseal() -> Result<Self::Unsealed> { | ||
| Ok(Rsa3072KeyPair::default()) | ||
| } | ||
|
|
||
| fn seal(_unsealed: Self::Unsealed) -> Result<()> { | ||
| Ok(()) | ||
| } | ||
| } |
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
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
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
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
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.
👍