CKM: Reduce big data size in TZ tests 62/202362/3
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Wed, 27 Mar 2019 11:29:24 +0000 (12:29 +0100)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Fri, 5 Apr 2019 09:27:41 +0000 (11:27 +0200)
The CFB big data encryption takes more than 20 minutes on TZ backend crossing
the key-manager's socket timeout as well as async API timeout and dramatically
extending the test duration. The reason is that CFB is not supported by GP API
and is implemented using multiple ECB encryption requests which takes a lot of
time.

Make big data size in TZ tests smaller.

Change-Id: Id02f5e49f18e1cdb18a245714fb4b79aeea93db8

src/ckm/unprivileged/encryption-decryption.cpp

index e452c45..3b2af2d 100644 (file)
@@ -198,7 +198,7 @@ public:
 
         PLAIN_DATA = create_raw_buffer(createRandomBufferCAPI(BUF_LEN));
 #ifdef TZ_BACKEND
-        BIG_DATA = create_raw_buffer(createRandomBufferCAPI(100000));
+        BIG_DATA = create_raw_buffer(createRandomBufferCAPI(1000));
 #else
         BIG_DATA = create_raw_buffer(createRandomBufferCAPI(5000000));
 #endif