Fix operation processing - add missing breaks 62/162162/1
authorTomasz Swierczek <t.swierczek@samsung.com>
Wed, 29 Nov 2017 08:03:53 +0000 (09:03 +0100)
committerTomasz Swierczek <t.swierczek@samsung.com>
Wed, 29 Nov 2017 09:47:39 +0000 (10:47 +0100)
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

ssflib/src/ssf_crypto.cpp

index 21ddf54..dccd8d0 100644 (file)
@@ -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);