Changes to strictly validate multiple `KeyPurpose` parameters
with KeyMint-V2 onward and to skip real key attestation using
emulated curve-25519 key on device with KeyMint V1 or Keymaster.

Bug: 353162976
Test: atest keystore2_client_tests
(cherry picked from https://android-review.googlesource.com/q/commit:c67143dda07ba517bef2cfe99637801fca987cc5)
Merged-In: I95172afbf5cc351774447ba7bf430ceec9162a6b
Change-Id: I95172afbf5cc351774447ba7bf430ceec9162a6b
4 files changed