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:
@@ -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>,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user