Test loading second call to LoadKeys fails

Merge from Widevine repo of http://go/wvgerrit/78144

This CL verifies that LoadKeys cannot be called twice a second time in
an OEMCrypto session.

Bug: 131359743
Test: unit tests on refernce code and taimen
Change-Id: I3da1c7639ed163799ee5996fd9f7f8b427c7ed30
This commit is contained in:
Fred Gylys-Colwell
2019-05-06 09:42:18 -07:00
parent 862cb96e77
commit c7a4c0c7db
2 changed files with 37 additions and 0 deletions

View File

@@ -636,6 +636,7 @@ OEMCryptoResult SessionContext::LoadKeys(
break;
}
}
encryption_key_.clear();
return OEMCrypto_SUCCESS;
}