-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
446 additions
and
301 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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,4 +1,3 @@ | ||
pub mod ghash; | ||
// pub mod conn; | ||
// pub mod crypto; | ||
// pub mod error; | ||
|
This file contains 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 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,5 +1,3 @@ | ||
#[cfg(feature = "ghash")] | ||
pub mod ghash; | ||
pub mod msgs; | ||
#[cfg(feature = "prf")] | ||
pub mod prf; | ||
|
This file contains 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,45 @@ | ||
[package] | ||
name = "tlsn-universal-hash" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[features] | ||
default = ["ghash", "mock"] | ||
ghash = [] | ||
mock = [] | ||
|
||
[dependencies] | ||
# tlsn | ||
tlsn-mpc-core = { path = "../mpc/mpc-core" } | ||
tlsn-mpc-aio = { path = "../mpc/mpc-aio" } | ||
tlsn-utils = { path = "../utils/utils" } | ||
tlsn-utils-aio = { path = "../utils/utils-aio" } | ||
share-conversion-core = { path = "../mpc/share-conversion-core" } | ||
share-conversion-aio = { path = "../mpc/share-conversion-aio" } | ||
|
||
# rand | ||
rand_chacha = "0.3" | ||
rand = "0.8" | ||
rand_core = "0.6" | ||
|
||
# crypto | ||
ghash_rc = { package = "ghash", version = "0.4" } | ||
|
||
# async | ||
async-trait = "0.1" | ||
futures = "0.3" | ||
futures-util = "0.3" | ||
tokio = "1.23" | ||
tokio-util = "0.7" | ||
|
||
# testing | ||
rstest = "0.16" | ||
criterion = "0.3" | ||
|
||
# error/log | ||
thiserror = "1" | ||
|
||
# misc | ||
derive_builder = "0.11" | ||
once_cell = "1" | ||
generic-array = "0.14" |
This file contains 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,11 @@ | ||
use derive_builder::Builder; | ||
|
||
#[derive(Debug, Clone, Builder)] | ||
pub struct GhashConfig { | ||
/// Initial number of block shares to provision | ||
#[builder(default = "1024")] | ||
pub initial_block_count: usize, | ||
/// Maximum number of blocks supported | ||
#[builder(default = "1024")] | ||
pub max_block_count: usize, | ||
} |
20 changes: 9 additions & 11 deletions
20
tls/tls-2pc-aio/src/ghash/mock.rs → universal-hash/src/ghash/ghash/mock.rs
This file contains 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.