Skip to content

Commit

Permalink
add some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
James Zheng committed Jun 21, 2022
1 parent 31997bc commit 6875fac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions go/common/crypto/mrae/deoxysii/asymmetric_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
)

func Test_DeriveSymmetricKey(t *testing.T) {
// use the same test Hex string for rust at: oasis-core/runtime/src/common/crypto/mrae/deoxysii.rs
p, _ := hex.DecodeString("c07b151fbc1e7a11dff926111188f8d872f62eba0396da97c0a24adb75161750")
var privateKey [32]byte
copy(privateKey[:], p)
Expand Down
2 changes: 1 addition & 1 deletion runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ oid-registry = "0.4.0"
rsa = "0.5.0"
base64-serde = "0.6.1"
lru = "0.7.5"
hex = "0.4"

[target.'cfg(not(target_env = "sgx"))'.dependencies.tokio]
version = "1"
features = ["full"]

[dev-dependencies]
# For storage interoperability tests only.
hex = "0.4"
jsonrpc = { version = "0.12.1", features = ["simple_uds"] }
tempfile = "3.3.0"

Expand Down
1 change: 1 addition & 0 deletions runtime/src/common/crypto/mrae/deoxysii.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ mod tests {

#[test]
fn test_drive_symmetric_key() {
// use the same test Hex string for golang at: oasis-core/go/common/crypto/mrae/deoxysii/asymmetric_test.go
let private_key_buffer = <[u8; 32]>::from_hex(
"c07b151fbc1e7a11dff926111188f8d872f62eba0396da97c0a24adb75161750",
)
Expand Down

0 comments on commit 6875fac

Please sign in to comment.