tpm2: Add missing break statement to EVP function selectors

Add a missing break statement to the EVP function selectors
based on algorithm. So far this missing break statement had
not negative effect since no other algoritms are in use in
case statements below the TDES.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
Stefan Berger 2019-11-20 09:15:56 -05:00 committed by Stefan Berger
parent 3909f211ac
commit 8d68e403b3

View File

@ -184,13 +184,16 @@ evpfunc GetEVPCipher(TPM_ALG_ID algorithm, // IN
evpfn = (evpfunc[]){EVP_des_ede3_ecb, EVP_des_ede3_ecb, NULL}[i];
break;
#endif
}
}
break;
#endif
#if ALG_SM4
#error Missing implementation of EVP for SM4
case TPM_ALG_SM4:
break;
#endif
#if ALG_CAMELLIA
#error Missing implementation of EVP for Camellia
case TPM_ALG_CAMELLIA: