Skip to content

Commit

Permalink
kbs-protocol: apply for version 0.6.0
Browse files Browse the repository at this point in the history
Signed-off-by: Xynnn007 <[email protected]>
  • Loading branch information
Xynnn007 committed Dec 31, 2024
1 parent da33cf9 commit 2d2cf9e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion attestation-agent/kbs_protocol/src/client/rcar_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ async fn build_request(tee: Tee) -> Request {
Request {
version: String::from(KBS_PROTOCOL_VERSION),
tee,
extra_params,
extra_params: extra_params.to_string(),
}
}

Expand Down Expand Up @@ -188,6 +188,7 @@ impl KbsClient<Box<dyn EvidenceProvider>> {

let extra_params = challenge.extra_params;

let extra_params = serde_json::from_str(&extra_params)?;
let algorithm = get_hash_algorithm(extra_params)?;

let tee_pubkey = self.tee_key.export_pubkey()?;
Expand Down
3 changes: 2 additions & 1 deletion attestation-agent/kbs_protocol/src/keypair.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ impl TeeKeyPair {
let k_mod = URL_SAFE_NO_PAD.encode(self.keypair.n());
let k_exp = URL_SAFE_NO_PAD.encode(self.keypair.e());

Ok(TeePubKey::RSA {
Ok(TeePubKey {
kty: "RSA".to_string(),
alg: PaddingMode::PKCS1v15.as_ref().to_string(),
k_mod,
k_exp,
Expand Down

0 comments on commit 2d2cf9e

Please sign in to comment.