From: Jarkko Sakkinen <jarkko@kernel.org>
To: tpm-protocol@lists.linux.dev
Cc: tpm2@lists.linux.dev, Jarkko Sakkinen <jarkko@kernel.org>
Subject: [PATCH] fix(message): correct wrong field type in StartAuthSession
Date: Mon, 1 Sep 2025 00:49:15 +0300 [thread overview]
Message-ID: <20250831214915.847041-1-jarkko@kernel.org> (raw)
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
reply other threads:[~2025-08-31 21:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250831214915.847041-1-jarkko@kernel.org \
--to=jarkko@kernel.org \
--cc=tpm-protocol@lists.linux.dev \
--cc=tpm2@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.