From: Tomasz Swierczek Date: Wed, 29 Nov 2017 08:03:53 +0000 (+0100) Subject: Fix operation processing - add missing breaks X-Git-Tag: submit/tizen/20171205.070457~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a31c3519dad27e65adfed10ecc0efe6f2d243606;p=platform%2Fcore%2Fsecurity%2Ftef-simulator.git Fix operation processing - add missing breaks One of previous commits removed break statements in case which leads to TA panic in tef-simulator (key-manager-ta backend was hanging because of this) Change-Id: I1d12d600ae5bfec8ee4817e1669590b7703243a0 --- diff --git a/ssflib/src/ssf_crypto.cpp b/ssflib/src/ssf_crypto.cpp index 21ddf54..dccd8d0 100644 --- a/ssflib/src/ssf_crypto.cpp +++ b/ssflib/src/ssf_crypto.cpp @@ -2254,12 +2254,14 @@ TEE_Result TEE_AEInit(TEE_OperationHandle operation, void* nonce, size_t nonceLe LOGE(SSF_LIB, "Incorrect tag length %u", tagLen); return TEE_ERROR_NOT_SUPPORTED; } + break; } case TEE_ALG_AES_CCM: { if (std::find(values_CCM.begin(), values_CCM.end(), tagLen) == values_CCM.end()) { LOGE(SSF_LIB, "Incorrect tag length %u", tagLen); return TEE_ERROR_NOT_SUPPORTED; } + break; } default: { LOGE(SSF_LIB, "Incorrect algorithm %x", op->info.algorithm);