Remove unused parameters
Merge from Widevine repo of http://go/wvgerrit/94043 Remove some unused parameters from test code. These had been generating compiler warnings. Bug: 149592532 Test: built and ran unit tests on crosshatch Change-Id: If1325edc3418f77d620ce3765496ef17156bc624
This commit is contained in:
@@ -216,7 +216,7 @@ void ProvisioningRoundTrip::PrepareSession(
|
||||
|
||||
void ProvisioningRoundTrip::VerifyRequestSignature(
|
||||
const vector<uint8_t>& data, const vector<uint8_t>& generated_signature,
|
||||
size_t core_message_length) {
|
||||
size_t /* core_message_length */) {
|
||||
if (global_features.provisioning_method == OEMCrypto_OEMCertificate) {
|
||||
session()->VerifyRSASignature(data, generated_signature.data(),
|
||||
generated_signature.size(), kSign_RSASSA_PSS);
|
||||
@@ -333,21 +333,16 @@ OEMCryptoResult ProvisioningRoundTrip::LoadResponse(Session* session) {
|
||||
// If this platform does not support v15 functions, we just need to stub these
|
||||
// out so that the tests compile.
|
||||
OEMCryptoResult OEMCrypto_RewrapDeviceRSAKey30_V15(
|
||||
OEMCrypto_SESSION session, const uint32_t* unaligned_nonce,
|
||||
const uint8_t* encrypted_message_key, size_t encrypted_message_key_length,
|
||||
const uint8_t* enc_rsa_key, size_t enc_rsa_key_length,
|
||||
const uint8_t* enc_rsa_key_iv, uint8_t* wrapped_rsa_key,
|
||||
size_t* wrapped_rsa_key_length) {
|
||||
OEMCrypto_SESSION, const uint32_t*, const uint8_t*, size_t, const uint8_t*,
|
||||
size_t, const uint8_t*, uint8_t*, size_t*) {
|
||||
LOGE("Support for v15 functions not included. Define TEST_OEMCRYPTO_V15.");
|
||||
return OEMCrypto_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
OEMCryptoResult OEMCrypto_RewrapDeviceRSAKey_V15(
|
||||
OEMCrypto_SESSION session, const uint8_t* message, size_t message_length,
|
||||
const uint8_t* signature, size_t signature_length,
|
||||
const uint32_t* unaligned_nonce, const uint8_t* enc_rsa_key,
|
||||
size_t enc_rsa_key_length, const uint8_t* enc_rsa_key_iv,
|
||||
uint8_t* wrapped_rsa_key, size_t* wrapped_rsa_key_length) {
|
||||
OEMCrypto_SESSION, const uint8_t*, size_t, const uint8_t*, size_t,
|
||||
const uint32_t*, const uint8_t*, size_t, const uint8_t*, uint8_t*,
|
||||
size_t*) {
|
||||
LOGE("Support for v15 functions not included. Define TEST_OEMCRYPTO_V15.");
|
||||
return OEMCrypto_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user