Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
8550d7d
[itp-sgx-crypto] add `ToPubkey` and `AccessPubkey` traits
clangenb May 23, 2023
560c787
[itp-sgx-crypto] refactor the Rsa3072 stuff to no longer use static f…
clangenb May 23, 2023
2906f8f
[itp-sgx-crypto] set-base-path to the PWD
clangenb May 23, 2023
e9dbe6e
[enclave-runtime] more explanation about using the PWD
clangenb May 23, 2023
177503d
[enclave-runtime] add todo for replacing the once-cell.
clangenb May 23, 2023
5645420
taplo fmt
clangenb May 23, 2023
0c1d6b9
add some doc
clangenb May 23, 2023
8ea4fff
typo
clangenb May 23, 2023
b229b3e
Merge branch 'master' into cl/set-base-path-of-shielding-key
clangenb May 23, 2023
7a381e4
[sgx-crypto] log full path instead of just filename.
clangenb May 24, 2023
33faf7d
[itp-sgx-io] fix standalone compilation
clangenb May 24, 2023
19b873e
[itp-sgx-crypto] put some functions behind a trait.
clangenb May 24, 2023
b5c5284
[enclave-runtime/attestation_handler] add signing key repo to struct
clangenb May 24, 2023
6a71619
[itp-sgx-crypto] impl `ToPubkey` for `ed25511::Pair`
clangenb May 24, 2023
cc0be6e
introduce `SigningKeyRepository` and remove all instances of `StaticF…
clangenb May 24, 2023
f73b880
[itp-sgx-crypto] add base path to AESSeal
clangenb May 24, 2023
d0e5c3e
[itp-state-handler] wip update tests
clangenb May 24, 2023
11a3852
[itp-state-handler] add debug log for existing files in shard
clangenb May 24, 2023
a4d0a41
[itp-state-handler] fix tests by creating a unique key-repo per test
clangenb May 24, 2023
07891b6
Merge branch 'master' into cl/set-base-path-of-state-key
clangenb May 26, 2023
d53ef30
fix merge errors
clangenb May 26, 2023
df8c61f
[itp-sgx-crypto] add tests for aes
clangenb May 26, 2023
4202a29
taplo fmt
clangenb May 26, 2023
bace8d6
clippy
clangenb May 26, 2023
61688aa
move aes key file name constant to the aes module
clangenb May 26, 2023
df29524
[stf-state-handle] rename `TestKeyRepositoryMock` to `TestKeyReposito…
clangenb May 26, 2023
f77d48f
[itp-sgx-crypto] more accurate name for the AES key file
clangenb May 26, 2023
be3bc66
Merge branch 'master' into cl/set-base-path-of-state-key
clangenb May 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
1 change: 0 additions & 1 deletion core-primitives/settings/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ pub mod files {
pub static SIDECHAIN_PURGE_LIMIT: u64 = 100; // keep the last.. sidechainblocks when purging

// used by enclave
pub const AES_KEY_FILE_AND_INIT_V: &str = "aes_key_sealed.bin";
pub const LIGHT_CLIENT_DB: &str = "light_client_db.bin";

pub const RA_DUMP_CERT_DER_FILE: &str = "ra_dump_cert.der";
Expand Down
4 changes: 3 additions & 1 deletion core-primitives/sgx/crypto/src/aes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ use crate::{
};
use aes::Aes128;
use codec::{Decode, Encode};
use itp_settings::files::AES_KEY_FILE_AND_INIT_V;
use ofb::{
cipher::{NewStreamCipher, SyncStreamCipher},
Ofb,
Expand All @@ -33,6 +32,9 @@ use std::{

type AesOfb = Ofb<Aes128>;

/// File name of the sealed AES key data.
pub const AES_KEY_FILE_AND_INIT_V: &str = "aes_key_sealed.bin";

#[derive(Debug, Default, Encode, Decode, Clone, Copy, PartialEq, Eq)]
pub struct Aes {
pub key: [u8; 16],
Expand Down