ext/phc-winner-argon2/src/opt.h in argon2-1.0.0 vs ext/phc-winner-argon2/src/opt.h in argon2-1.1.0

- old
+ new

@@ -25,9 +25,19 @@ * @param next_block Pointer to the block to be XORed over. May coincide with @ref_block * @pre all block pointers must be valid */ void fill_block_with_xor(__m128i *state, const uint8_t *ref_block, uint8_t *next_block); +/* LEGACY CODE: version 1.2.1 and earlier +* Function fills a new memory block by overwriting @next_block. +* @param state Pointer to the just produced block. Content will be updated(!) +* @param ref_block Pointer to the reference block +* @param next_block Pointer to the block to be XORed over. May coincide with @ref_block +* @pre all block pointers must be valid +*/ +void fill_block(__m128i *state, const uint8_t *ref_block, uint8_t *next_block); + + /* * Generate pseudo-random values to reference blocks in the segment and puts * them into the array * @param instance Pointer to the current instance * @param position Pointer to the current position