KongQun Yang f753fd4084 Workaround server bug that strips padding unconditionally
License server SDK between [v16.3.3, v16.4.3] strips 16 bytes from
wrapped content keys unconditionally when generating the OEMCrypto
core message even when the padding is not present, which happens
when license protocol version 2.2 is used. As a result, both key
data offset and key data length would be zero in the license
response OEMCrypto core message.

This CL workaround the problem by assuming deterministic in order
serialization of the protobuf fields and deriving the key data offset
from the previous field key_data_iv offset.

Entitlement keys and generic crypto keys are not handled in this CL
intentionally to reduce the implementation complexity.

Renewal signing keys do not need to be handled as the paddings are not
stripped from the signing keys.

The workaround is defined under flag WORKAROUND_STRIP_PADDING_BUG.

Also disabled HAS_PROVIDER_KEYS temporarily.

Bug: 280521253
2023-05-03 07:30:59 +00:00
2020-05-18 19:45:53 -07:00
Description
No description provided
604 KiB