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:
parent
a764eb9f45
commit
29fd461ceb
1 changed files with 4 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue