Include challenge in test_rkpd_attestation_key_upgrade

KeyMint.generateKey requires a challenge to be passed when a key
blob is also passed. The test missed this, and was thus failing on
compliant HALs.

Bug: 301223273
Test: keystore2_test
Change-Id: Icf7a32683c85d87fddd7d05ba07a110bb4e38c79
This commit is contained in:
Seth Moore 2023-09-26 10:42:06 -07:00
parent a764eb9f45
commit 29fd461ceb

View file

@ -685,6 +685,10 @@ mod tests {
tag: Tag::ALGORITHM,
value: KeyParameterValue::Algorithm(Algorithm::AES),
},
KeyParameter {
tag: Tag::ATTESTATION_CHALLENGE,
value: KeyParameterValue::Blob(vec![0; 16]),
},
KeyParameter { tag: Tag::KEY_SIZE, value: KeyParameterValue::Integer(128) },
];
let attestation_key = AttestationKey {