mirror of
https://github.com/stefanberger/libtpms
synced 2026-08-11 12:43:59 +00:00
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:
parent
3909f211ac
commit
8d68e403b3
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user