diff options
author | Juergen Repp <juergen.repp@sit.fraunhofer.de> | 2020-03-11 16:14:17 +0100 |
---|---|---|
committer | Tadeusz Struk <tadeusz.struk@intel.com> | 2020-03-11 10:00:59 -0700 |
commit | 2256086bfbd9c3bbe9309c245c21675ba662d437 (patch) | |
tree | dbf5ca0c606df9939185838da0020d4a41c745e1 | |
parent | e96292eb2eb2f0abe5dfcd91f4112ccf302a9838 (diff) | |
download | tpm2-tss-2256086bfbd9c3bbe9309c245c21675ba662d437.tar.gz |
test/esys: Check unsupported symmetric cipher used for Esys_EncryptDecrypt test.
The key type TPM2_ALG_SYMCIPHER might not be supported. In this case the test will be
skipped.
Signed-off-by: Juergen Repp <juergen.repp@sit.fraunhofer.de>
-rw-r--r-- | test/integration/esys-encrypt-decrypt.int.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/integration/esys-encrypt-decrypt.int.c b/test/integration/esys-encrypt-decrypt.int.c index 3204a549..e357f0bb 100644 --- a/test/integration/esys-encrypt-decrypt.int.c +++ b/test/integration/esys-encrypt-decrypt.int.c @@ -207,6 +207,12 @@ test_esys_encrypt_decrypt(ESYS_CONTEXT * esys_context) &outPrivate2, &outPublic2, &creationData2, &creationHash2, &creationTicket2); + + if (r == 0x2c2) { /*<< tpm:parameter(2):inconsistent attributes */ + LOG_WARNING("Unsupported symmetric cipher."); + failure_return = EXIT_SKIP; + goto error; + } goto_if_error(r, "Error esys create ", error); LOG_INFO("AES key created."); |