Skip to content

Commit

Permalink
Falcon: consistent use of hash_to_point_ct
Browse files Browse the repository at this point in the history
  • Loading branch information
jschanck committed Feb 1, 2021
1 parent 044f5c5 commit cea1fa5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion falcon/patches/crypto_sign_falcon1024dyn_avx2_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@
inner_shake256_flip(&sc);
- falcon1024dyn_avx2_hash_to_point_vartime(
- &sc, r.hm, 10);
+ falcon1024dyn_ref_hash_to_point_ct(&sc, r.hm, 10);
+ falcon1024dyn_ref_hash_to_point_ct(&sc, r.hm, 10, tmp.b);
+ inner_shake256_ctx_release(&sc);

/*
Expand Down
2 changes: 1 addition & 1 deletion falcon/patches/crypto_sign_falcon1024dyn_ref_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
inner_shake256_flip(&sc);
- falcon1024dyn_ref_hash_to_point_vartime(
- &sc, r.hm, 10);
+ falcon1024dyn_ref_hash_to_point_ct(&sc, r.hm, 10);
+ falcon1024dyn_ref_hash_to_point_ct(&sc, r.hm, 10, tmp.b);
+ inner_shake256_ctx_release(&sc);

/*
Expand Down
2 changes: 1 addition & 1 deletion falcon/update_patches.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fi
rm -rf ${PATCHES}
mkdir -p ${PATCHES}/tmp/

diff -ru --no-dereference ${V1} ${V2} > ${PATCHES}/tmp/p
diff -ruN --no-dereference ${V1} ${V2} > ${PATCHES}/tmp/p

( cd ${PATCHES}/tmp/
splitpatch ${PATCHES}/tmp/p
Expand Down

0 comments on commit cea1fa5

Please sign in to comment.