mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
In hash drbg changed assignment to memcpy to fix strict aliasing
warning.
This commit is contained in:
@ -232,7 +232,7 @@ static int Hash_gen(DRBG* drbg, byte* out, word32 outSz, const byte* V)
|
||||
return DRBG_FAILURE;
|
||||
}
|
||||
|
||||
checkBlock = *(word32*)drbg->digest;
|
||||
XMEMCPY(&checkBlock, drbg->digest, sizeof(word32));
|
||||
if (drbg->reseedCtr > 1 && checkBlock == drbg->lastBlock) {
|
||||
if (drbg->matchCount == 1) {
|
||||
return DRBG_CONT_FAILURE;
|
||||
|
Reference in New Issue
Block a user