separate STM32F2 hardware hash support, disable by default

pull/1/head
Chris Conlon 2013-05-15 10:48:35 -06:00
parent ac716c96d3
commit 091c7a7ef3
4 changed files with 6 additions and 6 deletions

View File

@ -37,7 +37,7 @@
#endif #endif
#ifdef STM32F2_CRYPTO #ifdef STM32F2_HASH
/* /*
* STM32F2 hardware MD5 support through the STM32F2 standard peripheral * STM32F2 hardware MD5 support through the STM32F2 standard peripheral
* library. Documentation located in STM32F2xx Standard Peripheral Library * library. Documentation located in STM32F2xx Standard Peripheral Library
@ -342,6 +342,6 @@ void Md5Final(Md5* md5, byte* hash)
InitMd5(md5); /* reset state */ InitMd5(md5); /* reset state */
} }
#endif /* STM32F2_CRYPTO */ #endif /* STM32F2_HASH */
#endif /* NO_MD5 */ #endif /* NO_MD5 */

View File

@ -36,7 +36,7 @@
#endif #endif
#ifdef STM32F2_CRYPTO #ifdef STM32F2_HASH
/* /*
* STM32F2 hardware SHA1 support through the STM32F2 standard peripheral * STM32F2 hardware SHA1 support through the STM32F2 standard peripheral
* library. Documentation located in STM32F2xx Standard Peripheral Library * library. Documentation located in STM32F2xx Standard Peripheral Library
@ -348,6 +348,6 @@ void ShaFinal(Sha* sha, byte* hash)
InitSha(sha); /* reset state */ InitSha(sha); /* reset state */
} }
#endif /* STM32F2_CRYPTO */ #endif /* STM32F2_HASH */
#endif /* NO_SHA */ #endif /* NO_SHA */

View File

@ -33,7 +33,7 @@
/* in bytes */ /* in bytes */
enum { enum {
#ifdef STM32F2_CRYPTO #ifdef STM32F2_HASH
MD5_REG_SIZE = 4, /* STM32 register size, bytes */ MD5_REG_SIZE = 4, /* STM32 register size, bytes */
#endif #endif
MD5 = 0, /* hash type unique */ MD5 = 0, /* hash type unique */

View File

@ -34,7 +34,7 @@
/* in bytes */ /* in bytes */
enum { enum {
#ifdef STM32F2_CRYPTO #ifdef STM32F2_HASH
SHA_REG_SIZE = 4, /* STM32 register size, bytes */ SHA_REG_SIZE = 4, /* STM32 register size, bytes */
#endif #endif
SHA = 1, /* hash type unique */ SHA = 1, /* hash type unique */