fix init order warning

This commit is contained in:
Alex Fabijanic 2017-06-26 21:02:14 +02:00
parent 303861cf11
commit 1f27dcf5c0
2 changed files with 4 additions and 6 deletions

View File

@ -289,9 +289,8 @@ static void blake2b_compress(blake2b_state *S, const uint8_t block[BLAKE2B_BLOCK
} }
} }
BLAKE2Engine::BLAKE2Engine(ALGORITHM algorithm) BLAKE2Engine::BLAKE2Engine(ALGORITHM algorithm): _context(NULL),
: _algorithm(algorithm) _algorithm(algorithm)
, _context(NULL)
{ {
_digest.reserve(digestLength()); _digest.reserve(digestLength());
reset(); reset();

View File

@ -123,9 +123,8 @@ typedef struct
unsigned char delimitedSuffix; unsigned char delimitedSuffix;
} HASHCONTEXT; } HASHCONTEXT;
SHA3Engine::SHA3Engine(ALGORITHM algorithm) SHA3Engine::SHA3Engine(ALGORITHM algorithm): _context(NULL),
: _algorithm(algorithm) _algorithm(algorithm)
, _context(NULL)
{ {
_digest.reserve(digestLength()); _digest.reserve(digestLength());
reset(); reset();