Fix CastReceiver unit tests

Test: opk_ta, opk_ta_p40
Bug: 259454969

Merged from https://widevine-internal-review.googlesource.com/175370

Change-Id: I6cefe7fb85db539ecb066498b51525a04b8bbd51
This commit is contained in:
Matt Feddersen
2023-05-16 21:26:41 +00:00
committed by Robert Shih
parent 27421a9161
commit 4fa979b43d
3 changed files with 82 additions and 33 deletions

View File

@@ -653,7 +653,7 @@ void Provisioning40CastRoundTrip::VerifyRequestSignature(
// Creates a prov2 response
void Provisioning40CastRoundTrip::CreateDefaultResponse() {
uint32_t algorithm_n = htonl(kSign_RSASSA_PSS);
uint32_t algorithm_n = htonl(allowed_schemes_);
memcpy(response_data_.rsa_key, "SIGN", 4);
memcpy(response_data_.rsa_key + 4, &algorithm_n, 4);
memcpy(response_data_.rsa_key + 8, encoded_rsa_key_.data(),