diff options
author | Jun Nie <jun.nie@linaro.org> | 2023-06-16 17:08:06 +0800 |
---|---|---|
committer | Jun Nie <jun.nie@linaro.org> | 2023-06-16 17:10:26 +0800 |
commit | bf2f92a78e9ee9bb6ee2a7ac30420d43e00009fa (patch) | |
tree | c61de06d8b3815d0617987dd75f5327462dd55bd | |
parent | 375fa1d2d7adacfbcd2d00c8406ced3ab7eaa125 (diff) |
polish success casekey_api_demo_aes_create_and_enc_dec_together_ok
Signed-off-by: Jun Nie <jun.nie@linaro.org>
-rw-r--r-- | ta/key_demo/key_demo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ta/key_demo/key_demo.c b/ta/key_demo/key_demo.c index 72b0e15..f3e5332 100644 --- a/ta/key_demo/key_demo.c +++ b/ta/key_demo/key_demo.c @@ -617,12 +617,12 @@ EMSG("-----------Open persistent object, res=0x%08x", result); TEE_CipherInit(encrypt_op, IV, IVlen); - /* we see panic in TEE_CipherUpdate() */ - TEE_CipherUpdate(encrypt_op, + EMSG("========Input buf [0] %d [28] %d [108] %d.", in[0], in[28], in[108]); + result = TEE_CipherUpdate(encrypt_op, in, TEST_CRYPT_SIZE, out, &out_size); - EMSG("========Out size %d, buf [0] 0x%x [28] 0x%x [108] 0x%x.", + EMSG("========Out size %d, buf [0] %d [28] %d [108] %d.", out_size, out[0], out[28], out[108]); TEE_Free(IV); |