tpm2: rev162: Use TPM_ALG_<SYM> rather than synonymous ALG_<SYM>_VALUE

This commit is contained in:
Stefan Berger 2020-04-17 18:15:21 -04:00 committed by Stefan Berger
parent 44325fb94b
commit e9f48a8bd7

View File

@ -3,7 +3,7 @@
/* Symmetric block cipher modes */
/* Written by Ken Goldman */
/* IBM Thomas J. Watson Research Center */
/* $Id: CryptSym.c 1476 2019-06-10 19:32:03Z kgoldman $ */
/* $Id: CryptSym.c 1594 2020-03-26 22:15:48Z kgoldman $ */
/* */
/* Licenses and Notices */
/* */
@ -55,7 +55,7 @@
/* arising in any way out of use or reliance upon this specification or any */
/* information herein. */
/* */
/* (c) Copyright IBM Corp. and others, 2016 - 2018 */
/* (c) Copyright IBM Corp. and others, 2016 - 2020 */
/* */
/********************************************************************************/
@ -123,7 +123,7 @@ CryptGetSymmetricBlockSize(
{
const INT16 *sizes;
INT16 i;
#define ALG_CASE(SYM, sym) case ALG_##SYM##_VALUE: sizes = sym##KeyBlockSizes; break
#define ALG_CASE(SYM, sym) case TPM_ALG_##SYM: sizes = sym##KeyBlockSizes; break
switch(symmetricAlg)
{
#if ALG_AES