* [PATCH] fix(message): correct wrong field type in StartAuthSession
@ 2025-08-31 21:49 Jarkko Sakkinen
0 siblings, 0 replies; only message in thread
From: Jarkko Sakkinen @ 2025-08-31 21:49 UTC (permalink / raw)
To: tpm-protocol; +Cc: tpm2, Jarkko Sakkinen
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
---
Will be immediately applied.
src/macro/mod.rs | 1 +
src/message/session.rs | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/macro/mod.rs b/src/macro/mod.rs
index 782d3f7..2070b62 100644
--- a/src/macro/mod.rs
+++ b/src/macro/mod.rs
@@ -172,6 +172,7 @@ macro_rules! tpm_dispatch {
}
/// A TPM command
+ #[allow(clippy::large_enum_variant)]
#[derive(Debug, PartialEq, Eq, Clone)]
pub enum TpmCommandBody {
$( $variant($cmd), )*
diff --git a/src/message/session.rs b/src/message/session.rs
index 24c883a..c2e29a6 100644
--- a/src/message/session.rs
+++ b/src/message/session.rs
@@ -5,7 +5,7 @@
//! 11.2 `TPM2_PolicyRestart`
use crate::{
- data::{Tpm2b, Tpm2bNonce, TpmAlgId, TpmCc, TpmSe, TpmtSymDefObject},
+ data::{Tpm2bEncryptedSecret, Tpm2bNonce, TpmAlgId, TpmCc, TpmSe, TpmtSymDefObject},
tpm_struct, TpmSession,
};
use core::fmt::Debug;
@@ -23,7 +23,7 @@ tpm_struct! {
},
parameters: {
pub nonce_caller: Tpm2bNonce,
- pub encrypted_salt: Tpm2b,
+ pub encrypted_salt: Tpm2bEncryptedSecret,
pub session_type: TpmSe,
pub symmetric: TpmtSymDefObject,
pub auth_hash: TpmAlgId,
--
2.39.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2025-08-31 21:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-31 21:49 [PATCH] fix(message): correct wrong field type in StartAuthSession Jarkko Sakkinen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox