Pick widevine oemcrypto-v18 change
No-Typo-Check: From a third party header file Bug: 260918793 Test: unit tests Test: atp v2/widevine-eng/drm_compliance Change-Id: I36effd6a10a99bdb2399ab1f4a0fad026d607c70
This commit is contained in:
@@ -19,6 +19,7 @@ namespace wvoec {
|
||||
|
||||
constexpr size_t kMaxTestRSAKeyLength = 2000; // Rough estimate.
|
||||
constexpr size_t kMaxCoreProvRequest = 150; // Rough estimate.
|
||||
constexpr size_t kMaxX509CertLength = 4000; // Rough estimate.
|
||||
|
||||
// This structure will be signed to simulate a provisioning response from the
|
||||
// server.
|
||||
@@ -31,6 +32,15 @@ struct RSAPrivateKeyMessage {
|
||||
uint32_t nonce;
|
||||
};
|
||||
|
||||
// This structure simulates a provisioning 4.0 response from the server.
|
||||
// However, OEMCrypto doesn't need to load this response, since it doesn't have
|
||||
// any secrets to be handled. It is just a dummy struct for the tests to
|
||||
// compile.
|
||||
struct Prov40CertMessage {
|
||||
uint8_t device_certificate[kMaxX509CertLength];
|
||||
uint32_t nonce;
|
||||
};
|
||||
|
||||
// Holds an encryption key and can encrypt a provisioning message. It also can
|
||||
// encrypt short buffers using CBC, such as content keys in a license.
|
||||
class Encryptor {
|
||||
|
||||
Reference in New Issue
Block a user