Merge "Increase challenge size in tests." am: dcaa803893

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2066892

Change-Id: I1fe335a81e28404dfd82ffbc132f313f7ee35b76
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Max Bires
2022-04-21 08:02:42 +00:00
committed by Automerger Merge Worker
2 changed files with 3 additions and 3 deletions

View File

@@ -106,7 +106,8 @@ parcelable ProtectedData {
* ]
*
* SignedMacAad = [
* challenge : bstr,
* challenge : bstr .size (32..64), // Size between 32 - 64
* // bytes inclusive
* VerifiedDeviceInfo,
* tag: bstr // This is the tag from COSE_Mac0 of
* // KeysToCertify, to tie the key set to

View File

@@ -358,8 +358,7 @@ TEST_P(GenerateKeyTests, generateEcdsaP256Key_testMode) {
class CertificateRequestTest : public VtsRemotelyProvisionedComponentTests {
protected:
CertificateRequestTest() : eekId_(string_to_bytevec("eekid")), challenge_(randomBytes(32)) {
}
CertificateRequestTest() : eekId_(string_to_bytevec("eekid")), challenge_(randomBytes(64)) {}
void generateTestEekChain(size_t eekLength) {
auto chain = generateEekChain(rpcHardwareInfo.supportedEekCurve, eekLength, eekId_);