Source release 19.1.0
This commit is contained in:
@@ -120,7 +120,7 @@ class OEMCryptoSessionTestsDecryptTests
|
||||
|
||||
void SetSubsampleSizes(std::vector<SubsampleSize> subsample_sizes) {
|
||||
// This is just sugar for having one sample with the given subsamples in it.
|
||||
SetSampleSizes({subsample_sizes});
|
||||
SetSampleSizes({std::move(subsample_sizes)});
|
||||
}
|
||||
|
||||
void SetSampleSizes(std::vector<std::vector<SubsampleSize>> sample_sizes) {
|
||||
@@ -386,11 +386,9 @@ class OEMCryptoSessionTestsDecryptTests
|
||||
if (verify_crc_) {
|
||||
const TestSample& sample = samples_[0];
|
||||
|
||||
uint32_t hash =
|
||||
uint32_t crc32 =
|
||||
util::wvcrc32(sample.truth_buffer.data(), sample.truth_buffer.size());
|
||||
OEMCrypto_SetDecryptHash(session_.session_id(), 1,
|
||||
reinterpret_cast<const uint8_t*>(&hash),
|
||||
sizeof(hash));
|
||||
OEMCrypto_SetDecryptHash(session_.session_id(), 1, crc32);
|
||||
}
|
||||
|
||||
// Build an array of just the sample descriptions.
|
||||
|
||||
Reference in New Issue
Block a user