platform_system_security/keystore2/test_utils
Rajesh Nyamagoud 4740993bf1 Adding tests using AES algorithm.
- Generate AES keys with block modes [ECB, CBC] and padding modes [NONE,
  PKCS7]. Should be able to create operations successfully with these
  generated keys.

- Generate AES keys with block modes [CTR, GCM] and padding modes [NONE,
  PKCS7]. Should be able to create operations successfully with padding
  mode NONE. With PKCS7 padding mode creation of an operation should
  fail with incompatible padding mode.

- Try to generate a key and create an operation with invalid inputs, it
  should fail with proper error codes.
  - with unsupported key size
  - with GCM block mode without providing min-mac-length
  - with multiple block modes
  - with multiple padding modes
  - with incompatible padding modes
  - with incompatible block modes
  - with missing mac-length
  - with invalid mac-length
  - with unsupported mac-length
  - With AES-CBC-PKCS7 key without `CALLER_NONCE` authorization, Try to
    set nonce while creating an operation.

Bug: 194359114
Test: atest keystore2_client_test
Change-Id: Ibf1b8460317b4c99d9060d5889c8b3778a80ca5b
2022-07-22 18:58:41 +00:00
..
authorizations.rs Adding tests using AES algorithm. 2022-07-22 18:58:41 +00:00
key_generations.rs Adding tests using AES algorithm. 2022-07-22 18:58:41 +00:00
lib.rs Create authorizations and key_generations test modules - 2022-03-25 19:51:23 +00:00
run_as.rs Keystore2 Tests: Revisit run_as function. 2022-03-16 13:21:56 -07:00