Skip to content

Commit

Permalink
Luminous beings are we, not this crude matter
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Mar 17, 2016
1 parent 81f87df commit 8a24608
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libsodium/crypto_pwhash/argon2/argon2-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,9 @@ uint32_t index_alpha(const argon2_instance_t *instance,
uint64_t relative_position;
uint32_t start_position, absolute_position;

if (0 == position->pass) {
if (position->pass == 0) {
/* First pass */
if (0 == position->slice) {
if (position->slice == 0) {
/* First slice */
reference_area_size =
position->index - 1; /* all but the previous */
Expand Down Expand Up @@ -253,7 +253,7 @@ uint32_t index_alpha(const argon2_instance_t *instance,
/* 1.2.5 Computing starting position */
start_position = 0;

if (0 != position->pass) {
if (position->pass != 0) {
start_position = (position->slice == ARGON2_SYNC_POINTS - 1)
? 0
: (position->slice + 1) * instance->segment_length;
Expand Down

0 comments on commit 8a24608

Please sign in to comment.