6 Commits

Author SHA1 Message Date
Fred Gylys-Colwell
bb16924e69 Update Unit tests and reference code
This patch adds a suite of tests for OEMCrypto that verifying buffer
overflow and off-by-one errors. The reference code has also been
updated to pass these tests.

The ODK library and the OEMCrypto API have not changed since the
release of version 16.4.
2021-01-25 19:51:10 -08:00
Fred Gylys-Colwell
2980612cb5 Update version compatibility document
- This updates the version compatibility document to clarify how the
Android hidl interface works.
- Testing of analog output was removed because the unit tests cannot
verify correct behaviour.
- Some buffer overflow tests have been added.
2020-12-15 14:29:34 -08:00
Fred Gylys-Colwell
016c2970ac Update unit tests to 2020-03-27 version
This CL updates the following:
- Some robustness improvements to the ODK library.
- Unit tests assume that license release does not have a core message.
- Added version string to unit tests.

The version string of the unit tests is now:
OEMCrypto unit tests for API 16.2. Tests last updated 2020-03-27
2020-03-30 18:51:33 -07:00
Fred Gylys-Colwell
d597f863e9 Update OEMCrypto docs to v16.2
This updates the documentation for the v16.2 release.
2020-02-01 12:00:52 -08:00
Fred Gylys-Colwell
ded4417dd4 OEMCrypto v15.2
See the file docs/Widevine_Modular_DRM_Version_15_Delta.pdf for
changes since version 15.1.
2019-05-08 13:37:45 -07:00
Fred Gylys-Colwell
1655d891de Updates to ref code and unit tests
This CL updates has several changes.

The document WidevineModularDRMSecurityIntegrationGuideforCENC_v14.pdf
had an incorrect definition of the PST_Report structure.  The header
file had the correct definition. This has been updated and the version
number of the document was rolled to 14.1

The unit tests TwoHundredEntries has been modifed to make sure that if
the usage table is full, then OEMCrypto will return the error
OEMCrypto_ERROR_INSUFFICIENT_RESOURCES.  This is important for the CDM
layer to correctly delete old licenses and secure stops when this
happens.

Several other unit tests covering corner cases have been added.

The reference code has been cleaned up a bit.  Some logging that might
be dangerous has been removed.
2018-09-19 20:32:32 -07:00