Merge pull request #370 from jschanck/falcon
Use hash_to_point_ct for both Falcon-512 and 1024
This commit is contained in:
commit
02beb7f8eb
@ -20,9 +20,9 @@ auxiliary-submitters:
|
|||||||
- Zhenfei Zhang
|
- Zhenfei Zhang
|
||||||
implementations:
|
implementations:
|
||||||
- name: clean
|
- name: clean
|
||||||
version: supercop-20201018 via https://github.com/jschanck/package-pqclean/tree/78831f03/falcon
|
version: supercop-20201018 via https://github.com/jschanck/package-pqclean/tree/cea1fa5a/falcon
|
||||||
- name: avx2
|
- name: avx2
|
||||||
version: supercop-20201018 via https://github.com/jschanck/package-pqclean/tree/78831f03/falcon
|
version: supercop-20201018 via https://github.com/jschanck/package-pqclean/tree/cea1fa5a/falcon
|
||||||
supported_platforms:
|
supported_platforms:
|
||||||
- architecture: x86_64
|
- architecture: x86_64
|
||||||
operating_systems:
|
operating_systems:
|
||||||
|
@ -187,7 +187,7 @@ do_sign(uint8_t *nonce, uint8_t *sigbuf, size_t *sigbuflen,
|
|||||||
inner_shake256_inject(&sc, nonce, NONCELEN);
|
inner_shake256_inject(&sc, nonce, NONCELEN);
|
||||||
inner_shake256_inject(&sc, m, mlen);
|
inner_shake256_inject(&sc, m, mlen);
|
||||||
inner_shake256_flip(&sc);
|
inner_shake256_flip(&sc);
|
||||||
PQCLEAN_FALCON1024_AVX2_hash_to_point_vartime(&sc, r.hm, 10);
|
PQCLEAN_FALCON1024_AVX2_hash_to_point_ct(&sc, r.hm, 10, tmp.b);
|
||||||
inner_shake256_ctx_release(&sc);
|
inner_shake256_ctx_release(&sc);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -187,7 +187,7 @@ do_sign(uint8_t *nonce, uint8_t *sigbuf, size_t *sigbuflen,
|
|||||||
inner_shake256_inject(&sc, nonce, NONCELEN);
|
inner_shake256_inject(&sc, nonce, NONCELEN);
|
||||||
inner_shake256_inject(&sc, m, mlen);
|
inner_shake256_inject(&sc, m, mlen);
|
||||||
inner_shake256_flip(&sc);
|
inner_shake256_flip(&sc);
|
||||||
PQCLEAN_FALCON1024_CLEAN_hash_to_point_vartime(&sc, r.hm, 10);
|
PQCLEAN_FALCON1024_CLEAN_hash_to_point_ct(&sc, r.hm, 10, tmp.b);
|
||||||
inner_shake256_ctx_release(&sc);
|
inner_shake256_ctx_release(&sc);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -20,9 +20,9 @@ auxiliary-submitters:
|
|||||||
- Zhenfei Zhang
|
- Zhenfei Zhang
|
||||||
implementations:
|
implementations:
|
||||||
- name: clean
|
- name: clean
|
||||||
version: supercop-20201018 via https://github.com/jschanck/package-pqclean/tree/78831f03/falcon
|
version: supercop-20201018 via https://github.com/jschanck/package-pqclean/tree/cea1fa5a/falcon
|
||||||
- name: avx2
|
- name: avx2
|
||||||
version: supercop-20201018 via https://github.com/jschanck/package-pqclean/tree/78831f03/falcon
|
version: supercop-20201018 via https://github.com/jschanck/package-pqclean/tree/cea1fa5a/falcon
|
||||||
supported_platforms:
|
supported_platforms:
|
||||||
- architecture: x86_64
|
- architecture: x86_64
|
||||||
operating_systems:
|
operating_systems:
|
||||||
|
Loading…
Reference in New Issue
Block a user