Commit Graph

7 Commits

Author SHA1 Message Date
Jacob Trimble
5da305d9de Add entitlement support for offline and migrate WORKSPACE 2025-01-17 23:55:54 +00:00
Jacob Trimble
3f6ce1d204 Add support for ODK v19.2 2024-07-09 21:17:50 +00:00
Drew Shao
9a1d1460fe Update zlib to version 1.3 2023-09-05 16:54:39 +00:00
KongQun Yang
d6ef4e1133 Update the test to support license protocol 2.2
- Add a flag ENABLE_LICENSE_PROTOCOL_2_2, when the flag is enabled
  - Hash the license request in WB_License_ProcessLicenseResponse, i.e.
    the request used for the key derivation, which ensures the key
    derivation message to be a string of constant size 64 bytes.
  - Hash the license request in WB_License_SignLicenseRequest. Note that
    the function takes license request (or hashed) + odk message as
    parameter for odk v17 or above.
- Enable the flag just for Chrome and ChromeOS for now.

We may change the implementation to hash inside the white-box in the
future.

Also included a few other misc changes, e.g. updating the DEPS of
boringssl and googletest which are already in the white-box directory,
adding a test main etc.
2023-03-29 19:20:23 +00:00
Jacob Trimble
e54d7da9eb Update partner repo
This updates the partner repo to match the internal version, including
the following changes:
- Adds a WB_RESULT_NOT_IMPLEMENTED error code
- Add a flag to control new features (e.g. entitlement support).
- Updates tests to match new expectations
2022-03-17 15:41:27 -07:00
Aaron Vaage
f936dd2983 Add "License Key Mode" To API
In order to support both single-key and dual-key RSA implementations
where single-key will use key 0 for both sign and encryption and where
dual-key will use key 0 for sign and key 1 for encryption.

Additional changes in this code drop:

 - Added VMP / RA override enabled tests
 - Added VMP / RA override disabled tests

This brings the partner repo in sync with the internal repo at
commit 71760b6da1ec546c65b56e2f86b39b73b53f6734.
2021-04-05 12:05:15 -07:00
Aaron Vaage
3c513cc46c Adding WB_License_QueryKeyStatus()
The two major changes in this code drop are:

1. The introduction of WB_License_QueryKeyStatus(). This function
makes it possible for the White-box to skip keys in the license and
report the usefulness of the key to the CDM.

2. The restructuring of the repo, making it easier to share test
BUILD files and set the foundation for the new code drop structure.

This change brings the partner repo in sync with the internal repo
at commit f3b472a541262ca4d425d2b294de39a99385a3d2.
2021-03-15 13:21:42 -07:00