diff --git a/ctaocrypt/src/md5.c b/ctaocrypt/src/md5.c index 26099d4e4..48c9c9426 100644 --- a/ctaocrypt/src/md5.c +++ b/ctaocrypt/src/md5.c @@ -37,7 +37,7 @@ #endif -#ifdef STM32F2_CRYPTO +#ifdef STM32F2_HASH /* * STM32F2 hardware MD5 support through the STM32F2 standard peripheral * library. Documentation located in STM32F2xx Standard Peripheral Library @@ -342,6 +342,6 @@ void Md5Final(Md5* md5, byte* hash) InitMd5(md5); /* reset state */ } -#endif /* STM32F2_CRYPTO */ +#endif /* STM32F2_HASH */ #endif /* NO_MD5 */ diff --git a/ctaocrypt/src/sha.c b/ctaocrypt/src/sha.c index 9f22b7e44..985cd9d2b 100644 --- a/ctaocrypt/src/sha.c +++ b/ctaocrypt/src/sha.c @@ -36,7 +36,7 @@ #endif -#ifdef STM32F2_CRYPTO +#ifdef STM32F2_HASH /* * STM32F2 hardware SHA1 support through the STM32F2 standard peripheral * library. Documentation located in STM32F2xx Standard Peripheral Library @@ -348,6 +348,6 @@ void ShaFinal(Sha* sha, byte* hash) InitSha(sha); /* reset state */ } -#endif /* STM32F2_CRYPTO */ +#endif /* STM32F2_HASH */ #endif /* NO_SHA */ diff --git a/cyassl/ctaocrypt/md5.h b/cyassl/ctaocrypt/md5.h index 6c4b8c887..2ab16b1b9 100644 --- a/cyassl/ctaocrypt/md5.h +++ b/cyassl/ctaocrypt/md5.h @@ -33,7 +33,7 @@ /* in bytes */ enum { -#ifdef STM32F2_CRYPTO +#ifdef STM32F2_HASH MD5_REG_SIZE = 4, /* STM32 register size, bytes */ #endif MD5 = 0, /* hash type unique */ diff --git a/cyassl/ctaocrypt/sha.h b/cyassl/ctaocrypt/sha.h index 591a86ee0..ce96f2781 100644 --- a/cyassl/ctaocrypt/sha.h +++ b/cyassl/ctaocrypt/sha.h @@ -34,7 +34,7 @@ /* in bytes */ enum { -#ifdef STM32F2_CRYPTO +#ifdef STM32F2_HASH SHA_REG_SIZE = 4, /* STM32 register size, bytes */ #endif SHA = 1, /* hash type unique */