mirror of https://github.com/wolfSSL/wolfssl
separate STM32F2 hardware hash support, disable by default
This commit is contained in:
parent
ac716c96d3
commit
091c7a7ef3
|
@ -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 */
|
||||||
|
|
|
@ -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 */
|
||||||
|
|
|
@ -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 */
|
||||||
|
|
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue