diff --git a/libwvdrmengine/oemcrypto/test/oemcrypto_test.cpp b/libwvdrmengine/oemcrypto/test/oemcrypto_test.cpp index a3a4304b..42d1a369 100644 --- a/libwvdrmengine/oemcrypto/test/oemcrypto_test.cpp +++ b/libwvdrmengine/oemcrypto/test/oemcrypto_test.cpp @@ -2753,6 +2753,9 @@ class OEMCryptoLoadsCertificate : public OEMCryptoSessionTestKeyboxTest { s.MakeRSACertificate(&encrypted, &signature, allowed_schemes, encoded_rsa_key_); s.RewrapRSAKey(encrypted, signature, wrapped_key, force); + // Verify that the clear key is not contained in the wrapped key. + // It should be encrypted. + ASSERT_EQ(NULL, find(*wrapped_key, encoded_rsa_key_)); } std::vector encoded_rsa_key_; @@ -4119,7 +4122,7 @@ class GenericCryptoTest : public OEMCryptoSessionTests { memcpy(iv_buffer, iv_, wvcdm::KEY_IV_SIZE); out_buffer->resize(in_buffer.size()); ASSERT_GT(in_buffer.size(), 0u); - ASSERT_EQ(0, in_buffer.size() % AES_BLOCK_SIZE); + ASSERT_EQ(0u, in_buffer.size() % AES_BLOCK_SIZE); AES_cbc_encrypt(&in_buffer[0], out_buffer->data(), in_buffer.size(), &aes_key, iv_buffer, AES_ENCRYPT); }