Skip to content

Commit b52a814

Browse files
cfrantzpamaury
authored andcommitted
[hsmtool] Support SPHINCS+ in CloudKMS
1. Use the CloudKMS REST/json API to perform SPHINCS+ signing. Signed-off-by: Chris Frantz <[email protected]> (cherry picked from commit 2ce2a91)
1 parent 025f22a commit b52a814

File tree

4 files changed

+407
-5
lines changed

4 files changed

+407
-5
lines changed

sw/host/hsmtool/BUILD

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,12 @@ rust_library(
126126
"src/commands/spx/verify.rs",
127127
"src/commands/token.rs",
128128
"src/error.rs",
129+
"src/extra/mod.rs",
130+
"src/extra/spxef.rs",
131+
"src/extra/spxkms.rs",
129132
"src/lib.rs",
130133
"src/module.rs",
131134
"src/profile.rs",
132-
"src/extra/mod.rs",
133-
"src/extra/spxef.rs",
134135
"src/util/attribute/attr.rs",
135136
"src/util/attribute/data.rs",
136137
"src/util/attribute/date.rs",
@@ -164,6 +165,7 @@ rust_library(
164165
"//sw/host/hsmtool/acorn",
165166
"//sw/host/sphincsplus",
166167
"@crate_index//:anyhow",
168+
"@crate_index//:base64ct",
167169
"@crate_index//:clap",
168170
"@crate_index//:cryptoki",
169171
"@crate_index//:cryptoki-sys",
@@ -178,6 +180,7 @@ rust_library(
178180
"@crate_index//:pem-rfc7468",
179181
"@crate_index//:rand",
180182
"@crate_index//:regex",
183+
"@crate_index//:reqwest",
181184
"@crate_index//:rsa",
182185
"@crate_index//:rustix",
183186
"@crate_index//:serde",

sw/host/hsmtool/src/extra/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@
33
// SPDX-License-Identifier: Apache-2.0
44

55
mod spxef;
6+
mod spxkms;
67

78
pub use spxef::SpxEf;
9+
pub use spxkms::SpxKms;

0 commit comments

Comments
 (0)