914e13067f0a5afc049d37955d97920aaa1ec7f5
Port from the widevine repo of http://go/wvgerrit/15628 This change enables easy support for baked-in certificates. Platforms using this feature need only change the supports_keybox property to false, replace keys.cpp with the file provided by Google, and make sure the cert.bin provided by Google is preinstalled in the storage. To enable this, new files defining storage for the embedded private key were added to MockOEMCrypto. When supports_keybox is false, these are referenced to get the embedded private key. As this code is mostly shared with the existing test utility function that loads the test certificate, the shared code was moved to a helper. Also, the behavior of the MockOEMCrypto implementation OEMCrypto_LoadDeviceRSAKey when supports_keybox is false was changed from erroring to validating that the "wrapped private key" is actually the magic value 0xDEADBEEF. Bug: 23554998 Change-Id: I8b5d7b4d37b8ec80bb4342e441625cbc5046df89
Description
No description provided