Merge cdm changes to android repo

Bug: 251924225
Test: GtsMediaTestCases
Change-Id: I1b4e64c0abf701fe1f5017f14dc72b72c3ea6770
This commit is contained in:
Kyle Zhang
2022-10-07 23:55:37 +00:00
parent 3cfe7c7299
commit af0168dbed
54 changed files with 295536 additions and 294359 deletions

View File

@@ -47,6 +47,11 @@ class KeyDeriver {
bool DeriveEncryptionKey(const std::vector<uint8_t>& enc_key_context,
std::vector<uint8_t>* enc_key);
// Derive renewed device key. Use on KeyDeriver initialized with old device
// key. |context| should be just the context field, eg A_priv+CA_token.
bool DeriveRenewedDeviceKey(const std::vector<uint8_t>& context,
std::vector<uint8_t>* renewed_device_key);
~KeyDeriver() {}
private:

View File

@@ -268,6 +268,13 @@ class RsaPrivateKey {
// Returns an empty vector on error.
std::vector<uint8_t> Serialize() const;
// Serializes the key's private exponent in network-byte-order
// using I2OSP primitive as defined by RFC3447 Section 4.1. The
// exact length of the exponent will depend on the exponents value,
// not the modulus size.
// Returns an empty vector on error.
std::vector<uint8_t> GetPrivateExponent() const;
// Signs the provided |message| using the RSA signing algorithm
// specified by |algorithm|. See RsaSignatureAlgorithm for
// details on each algorithm.