-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: refactor crypto, attestation into crates
Signed-off-by: Richard Zak <richard@profian.com>
- Loading branch information
1 parent
a589ff4
commit b47ca81
Showing
30 changed files
with
222 additions
and
148 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,22 @@ | ||
[package] | ||
name = "cryptography" | ||
version = "0.2.0" | ||
edition = "2021" | ||
license = "AGPL-3.0" | ||
description = "Cryptography library for Steward" | ||
|
||
[dependencies] | ||
anyhow = { version = "^1.0.55", features = ["std"], default-features = false } | ||
const-oid = { version = "0.9.0", features = ["db"], default-features = false } | ||
der = { version = "0.6", features = ["std"], default-features = false } | ||
rand = { version = "0.8", features = ["std"], default-features = false } | ||
rsa = {version = "0.7.1", features = ["std"], default-features = false } | ||
rustls-pemfile = {version = "1.0.1", default-features = false } | ||
sec1 = { version = "0.3", features = ["std", "pkcs8"], default-features = false } | ||
sha2 = { version = "^0.10.2", default-features = false } | ||
signature = {version = "1.6", default-features = false } | ||
spki = { version = "0.6", default-features = false } | ||
p256 = { version = "0.11", features = ["ecdsa", "std", "pem"], default-features = false } | ||
p384 = { version = "0.11", features = ["ecdsa", "std", "pem"], default-features = false } | ||
x509 = { version = "0.1", features = ["std"], package = "x509-cert", default-features = false } | ||
zeroize = { version = "^1.5.2", features = ["alloc"], default-features = false } |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,15 @@ | ||
// SPDX-FileCopyrightText: 2022 Profian Inc. <opensource@profian.com> | ||
// SPDX-License-Identifier: AGPL-3.0-only | ||
|
||
pub mod ext; | ||
|
||
pub use const_oid; | ||
pub use p256; | ||
pub use p384; | ||
pub use rand; | ||
pub use rsa; | ||
pub use rustls_pemfile; | ||
pub use sec1; | ||
pub use sha2; | ||
pub use signature; | ||
pub use x509; |
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,15 @@ | ||
[package] | ||
name = "sgx_validation" | ||
version = "0.2.0" | ||
edition = "2021" | ||
license = "AGPL-3.0" | ||
description = "Intel SGX Attestation validation library for Steward" | ||
|
||
[dependencies] | ||
cryptography = { path = "../cryptography" } | ||
anyhow = { version = "^1.0.55", default-features = false } | ||
der = { version = "0.6", features = ["std"], default-features = false } | ||
sgx = { version = "0.5.0", default-features = false } | ||
|
||
[dev-dependencies] | ||
testaso = { version = "0.1", default-features = false } |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,15 @@ | ||
[package] | ||
name = "snp_validation" | ||
version = "0.2.0" | ||
edition = "2021" | ||
license = "AGPL-3.0" | ||
description = "AMD SEV-SNP Attestation validation library for Steward" | ||
|
||
[dependencies] | ||
cryptography = { path = "../cryptography" } | ||
anyhow = { version = "^1.0.55", default-features = false } | ||
der = { version = "0.6", features = ["std"], default-features = false } | ||
flagset = { version = "0.4.3", default-features = false} | ||
|
||
[dev-dependencies] | ||
testaso = { version = "0.1", default-features = false } |
File renamed without changes.
Oops, something went wrong.