Merge "Use requested_security_level_ in SupportsUsageTable"
This commit is contained in:
@@ -693,8 +693,7 @@ bool CryptoSession::UsageInformationSupport(bool* has_support) {
|
|||||||
LOGV("UsageInformationSupport: id=%ld", (uint32_t)oec_session_id_);
|
LOGV("UsageInformationSupport: id=%ld", (uint32_t)oec_session_id_);
|
||||||
if (!initialized_) return false;
|
if (!initialized_) return false;
|
||||||
|
|
||||||
*has_support = OEMCrypto_SupportsUsageTable(
|
*has_support = OEMCrypto_SupportsUsageTable(requested_security_level_);
|
||||||
kSecurityLevelL3 == GetSecurityLevel() ? kLevel3 : kLevelDefault);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -487,7 +487,7 @@ OEMCryptoResult OEMCrypto_DecryptCTR(OEMCrypto_SESSION session,
|
|||||||
bool is_encrypted,
|
bool is_encrypted,
|
||||||
const uint8_t* iv,
|
const uint8_t* iv,
|
||||||
size_t block_offset,
|
size_t block_offset,
|
||||||
const OEMCrypto_DestBufferDesc* out_buffer,
|
OEMCrypto_DestBufferDesc* out_buffer,
|
||||||
uint8_t subsample_flags) {
|
uint8_t subsample_flags) {
|
||||||
if (LogCategoryEnabled(kLoggingTraceOEMCryptoCalls)) {
|
if (LogCategoryEnabled(kLoggingTraceOEMCryptoCalls)) {
|
||||||
LOGI("-- OEMCryptoResult OEMCrypto_DecryptCTR"
|
LOGI("-- OEMCryptoResult OEMCrypto_DecryptCTR"
|
||||||
|
|||||||
Reference in New Issue
Block a user