Skip to contentSkip to conversation

fix(message): correct wrong field type in StartAuthSession

PATCH New Jarkko Sakkinen 1 participant 1 message Aug 31, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix(message): correct wrong field type in StartAuthSession

---
Will be immediately applied.

 src/macro/mod.rs       | 1 +
 src/message/session.rs | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)
src/macro/mod.rs +1 -0
index 782d3f7..2070b62 100644
@@ -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), )*
src/message/session.rs +2 -2
index 24c883a..c2e29a6 100644
@@ -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,
Signature · 1 line
2.39.5