Fx Key Security Level From Key Control Block

We were missing break-statements when parsing the security levels
from the key control block.

To confirm this, the key control block tests were updated to attempt
decrypting so that we will try using the keys. The test that used
the KCB was failing since they key security level was "hardware".

This brings this repo in sync with the internal repo at commit
499bfbbb5beb6842071e47125842aedb12b1a8e0.
This commit is contained in:
Aaron Vaage
2021-01-15 16:14:23 -08:00
parent c1d449e809
commit d0b37c53dd
4 changed files with 119 additions and 61 deletions

View File

@@ -134,9 +134,9 @@ cc_library(
"license_whitebox_create_test.cc",
"license_whitebox_decrypt_test.cc",
"license_whitebox_get_secret_string_test.cc",
"license_whitebox_key_control_block_test.cc",
"license_whitebox_masked_decrypt_test.cc",
"license_whitebox_process_license_response_core_message_test.cc",
"license_whitebox_process_license_response_with_encrypted_key_control_block.cc",
"license_whitebox_process_license_response_test.cc",
"license_whitebox_sign_license_request_test.cc",
"license_whitebox_sign_renewal_request_test.cc",