Lines Matching refs:position
110 * Argon2 position: where we construct the block right now. Used to distribute
130 * Computes absolute position of reference block in the lane following a skewed
133 * @param position Pointer to the current position
134 * @param pseudo_rand 32-bit pseudo-random value used to determine the position
140 const argon2_position_t *position, uint32_t pseudo_rand,
157 if (position->pass == 0) {
159 if (position->slice == 0) {
162 position->index - 1; /* all but the previous */
167 position->slice * instance->segment_length +
168 position->index - 1;
171 position->slice * instance->segment_length +
172 ((position->index == 0) ? (-1) : 0);
179 instance->segment_length + position->index -
184 ((position->index == 0) ? (-1) : 0);
189 * relative position */
195 /* 1.2.5 Computing starting position */
198 if (position->pass != 0) {
199 start_position = (position->slice == ARGON2_SYNC_POINTS - 1)
201 : (position->slice + 1) * instance->segment_length;
204 /* 1.2.6. Computing absolute position */
206 instance->lane_length; /* absolute position */
274 * @param position Current position
278 argon2_position_t position);
281 argon2_position_t position);
283 argon2_position_t position);
285 argon2_position_t position);
287 argon2_position_t position);