Accept Other Error Codes in TestSignatureBoth
Merge from widevine of http://go/wvgerrit/14744 The OEMCrypto unit test TestSignatureBoth verifies that a cast certificate cannot be used to derive session keys. This CL relaxes the requirement that DeriveKeysFromSessionKey returns a specific error code instead of just failing. bug: 21708882 Change-Id: I4163a9616122ad709bab76f488d030239029861c
This commit is contained in:
@@ -1383,7 +1383,7 @@ class Session {
|
||||
vector<uint8_t> mac_context;
|
||||
vector<uint8_t> enc_context;
|
||||
FillDefaultContext(&mac_context, &enc_context);
|
||||
ASSERT_EQ(OEMCrypto_ERROR_INVALID_RSA_KEY,
|
||||
ASSERT_NE(OEMCrypto_SUCCESS,
|
||||
OEMCrypto_DeriveKeysFromSessionKey(
|
||||
session_id(), &enc_session_key[0], enc_session_key.size(),
|
||||
&mac_context[0], mac_context.size(), &enc_context[0],
|
||||
|
||||
Reference in New Issue
Block a user