diff options
author | David Drysdale <drysdale@google.com> | 2021-04-15 13:29:45 +0100 |
---|---|---|
committer | David Drysdale <drysdale@google.com> | 2021-04-30 19:15:39 +0100 |
commit | d2cc8c2c5ed28edcba795cf1c6cdee7675481e18 (patch) | |
tree | a9d1a83134cad577cb6a51d33e7b4718cf72174b /security/keymint/aidl/vts/functional/DeviceUniqueAttestationTest.cpp | |
parent | b5ee70f12558a7d4c25b35757647d0cd740526d8 (diff) |
More KeyMint VTS testcases
Tests for:
- non-prime RSA exponent (fails with CF KeyMint)
- RSA exponent value of 3
- key size > 512 for `STRONGBOX`
- unknown tag inclusion
- CBC input size not block size multiple
- challenge omitted for attestation (fails with CF KeyMint)
- import RSA key with implicit params
- vestigial upgradeKey test
- importWrappedKey errors
- importWrappedKey sids ignored
- duplicate/missing params on begin()
- more tests for incompatible params on begin()
- HMAC size not multiple of 8 (fails with CF KeyMint)
- wrong size caller IV for 3DES rejected
- too large MIN_MAC_LENGTH for HMAC
- invalid AES-GCM minimum MAC length values
- check failed updateAad() cancels operation
- check that auto-generated nonces are distinct
- (DISABLED_) invoke destroyAttestationIds()
- omitting optional RSA keygen tags
Also add commenting to illustrate the ASN.1 structure of hex data.
Test: VtsKeyMintAidlTargetTest
Change-Id: I4663c42671cbb094ffe8d603e0352ffa9f1dbf2e
Diffstat (limited to 'security/keymint/aidl/vts/functional/DeviceUniqueAttestationTest.cpp')
0 files changed, 0 insertions, 0 deletions