1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-21 20:04:02 +00:00

Clarify key blob data structure.

This commit is contained in:
Isaiah Inuwa
2026-02-20 08:07:07 -06:00
parent 351d574247
commit 9702ca8a02

View File

@@ -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<BCRYPT_KEY_BLOB>,
}