File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 2121#include "argon2.h"
2222#include "core.h"
2323
24+ #if defined(__AVX2__ )
25+
2426#include "blake2/blake2.h"
2527#include "blake2/blamka-round-opt.h"
2628
3335 * @param with_xor Whether to XOR into the new block (1) or just overwrite (0)
3436 * @pre all block pointers must be valid
3537 */
36- #if defined(__AVX2__ )
3738static void fill_block (__m256i * state , const block * ref_block ,
3839 block * next_block , int with_xor ) {
3940 __m256i block_XY [ARGON2_HWORDS_IN_BLOCK ];
@@ -194,7 +195,7 @@ void fill_segment_avx2(const argon2_instance_t *instance,
194195#else
195196void fill_segment_avx2 (const argon2_instance_t * instance ,
196197 argon2_position_t position ) {
197- UNREFERENCED_PARAMETER ( instance ) ;
198- UNREFERENCED_PARAMETER ( position ) ;
198+ ( void ) instance ;
199+ ( void ) position ;
199200}
200201#endif
Original file line number Diff line number Diff line change 2020#include "argon2.h"
2121#include "core.h"
2222
23+ #if CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE
24+
2325#include "blake2/blake2.h"
2426#include "blake2/blamka-round-opt.h"
2527#include "Crypto/config.h"
2628
27- #if CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE
28-
2929/*
3030 * Function fills a new memory block and optionally XORs the old block over the new one.
3131 * Memory must be initialized.
@@ -198,5 +198,7 @@ void fill_segment_sse2(const argon2_instance_t *instance,
198198#else
199199void fill_segment_sse2 (const argon2_instance_t * instance ,
200200 argon2_position_t position ) {
201+ (void )instance ;
202+ (void )position ;
201203}
202204#endif
You can’t perform that action at this time.
0 commit comments