Field provisioning for L3 OEMCrypto
bug: 8621460 Merge of https://widevine-internal-review.googlesource.com/#/c/4955/ from Widevine CDM repository. Change-Id: I30cf4314283db51c8e706c026501784259c87c13
This commit is contained in:
@@ -1682,9 +1682,16 @@ TEST_F(OEMCryptoClientTest, GenerateDerivedKeys) {
|
||||
testTearDown();
|
||||
}
|
||||
|
||||
// Define CAN_INSTALL_KEYBOX if you are compiling with the reference
|
||||
// implementation of OEMCrypto, or if your version of OEMCrypto supports
|
||||
// OEMCrypto_InstallKeybox and OEwith a clear keybox.
|
||||
// The Below tests are based on a specific keybox which is installed for testing.
|
||||
#if defined(CAN_INSTALL_KEYBOX)
|
||||
|
||||
TEST_F(OEMCryptoClientTest, GenerateSignature) {
|
||||
Session& s = createSession("ONE");
|
||||
testSetUp();
|
||||
InstallKeybox(kDefaultKeybox);
|
||||
Session& s = createSession("ONE");
|
||||
s.open();
|
||||
|
||||
s.GenerateDerivedKeys();
|
||||
@@ -1715,19 +1722,12 @@ TEST_F(OEMCryptoClientTest, GenerateSignature) {
|
||||
ASSERT_EQ(0, memcmp(&expected_signature[0], signature,
|
||||
expected_signature.size()));
|
||||
|
||||
|
||||
s.close();
|
||||
ASSERT_TRUE(s.successStatus());
|
||||
ASSERT_FALSE(s.isOpen());
|
||||
testTearDown();
|
||||
}
|
||||
|
||||
// Define CAN_INSTALL_KEYBOX if you are compiling with the reference
|
||||
// implementation of OEMCrypto, or if your version of OEMCrypto supports
|
||||
// OEMCrypto_InstallKeybox and OEwith a clear keybox.
|
||||
// The Below tests are based on a specific keybox which is installed for testing.
|
||||
#if defined(CAN_INSTALL_KEYBOX)
|
||||
|
||||
TEST_F(OEMCryptoClientTest, LoadKeyNoNonce) {
|
||||
testSetUp();
|
||||
InstallKeybox(kDefaultKeybox);
|
||||
|
||||
Reference in New Issue
Block a user