| 1 | #cxx . . $ `<file>/ref10/crypto_sign/fe_isnonzero.c`/include "fe.h"cxx . . $ `<file>/ref10/crypto_sign/fe.h`/ |
| 2 | #include "crypto_verify_32.h"cxx . . $ `<file>/ref10/crypto_verify/crypto_verify_32.h`/ |
| 3 | |
| 4 | /* |
| 5 | return 1 if f == 0 |
| 6 | return 0 if f != 0 |
| 7 | |
| 8 | Preconditions: |
| 9 | |f| bounded by 1.1*2^26,1.1*2^25,1.1*2^26,1.1*2^25,etc. |
| 10 | */ |
| 11 | |
| 12 | static const unsigned char zerocxx . . $ zero.[32]; |
| 13 | |
| 14 | int fe_isnonzerocxx . . $ `ref10/crypto_sign/fe.h:21:9`!(const fecxx . . $ fe# f) |
| 15 | { |
| 16 | unsigned char s[32]; |
| 17 | fe_tobytescxx . . $ `ref10/crypto_sign/fe.h:19:9`!(s,f); |
| 18 | return crypto_verify_32cxx . . $ `ref10/crypto_verify/crypto_verify_32.h:16:9`!(s,zerocxx . . $ zero.); |
| 19 | } |