| Index: crypto.cc
|
| diff --git a/crypto.cc b/crypto.cc
|
| index 4559ed90191059d2065f4fda0da4011682b46809..0ff53edb29dbe59129d3ec83304e23f40e92cc34 100644
|
| --- a/crypto.cc
|
| +++ b/crypto.cc
|
| @@ -724,6 +724,12 @@ bool Crypto::UnwrapVaultKeyset(const chromeos::Blob& wrapped_keyset,
|
| }
|
|
|
| vault_keyset->FromKeysBlob(plain_text);
|
| + // Check if the public key hash was stored
|
| + if (!serialized.has_tpm_public_key_hash() && serialized.has_tpm_key()) {
|
| + if (error) {
|
| + *error = CE_NO_PUBLIC_KEY_HASH;
|
| + }
|
| + }
|
| return true;
|
| }
|
|
|
|
|