diff options
Diffstat (limited to 'encryption/utils.cpp')
| -rw-r--r-- | encryption/utils.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/encryption/utils.cpp b/encryption/utils.cpp index e4d08df7..b46e5438 100644 --- a/encryption/utils.cpp +++ b/encryption/utils.cpp @@ -378,8 +378,10 @@ bool DeriveHwWrappedEncryptionKey(const std::vector<uint8_t> &master_key, &fixed_input_string); if (!AES_CMAC(enc_key->data() + (kAesBlockSize * count), master_key.data(), master_key.size(), fixed_input_string.data(), - fixed_input_string.size())) + fixed_input_string.size())) { + ADD_FAILURE() << "AES_CMAC failed while deriving inline encryption key"; return false; + } } return true; } |
