From 9702ca8a0252b0a19285109eca9ca1eae983ecca Mon Sep 17 00:00:00 2001 From: Isaiah Inuwa Date: Fri, 20 Feb 2026 08:07:07 -0600 Subject: [PATCH] Clarify key blob data structure. --- .../desktop_native/win_webauthn/src/plugin/crypto.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/desktop/desktop_native/win_webauthn/src/plugin/crypto.rs b/apps/desktop/desktop_native/win_webauthn/src/plugin/crypto.rs index c2572ede1b8..072c234c1f4 100644 --- a/apps/desktop/desktop_native/win_webauthn/src/plugin/crypto.rs +++ b/apps/desktop/desktop_native/win_webauthn/src/plugin/crypto.rs @@ -372,10 +372,14 @@ impl<'a> RequestHash<'a> { } /// Public key for verifying a signature over an operation request or user verification response /// buffer. +/// +/// This is a wrapper for a key blob structure, which starts with a generic +/// [BCRYPT_KEY_BLOB] header that determines what type of key this contains. Key +/// data follows in the remaining bytes specified by `cbPublicKey`. pub struct VerifyingKey { - /// Length of buffer + /// Total length of the key blob, including the [BCRYPT_KEY_BLOB] header. cbPublicKey: u32, - /// Pointer to a [BCRYPT_KEY_BLOB] + /// Pointer to a [BCRYPT_KEY_BLOB] header and remaining data. pbPublicKey: NonNull, }