diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2023-09-20 11:37:26 +0200 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2023-09-20 11:37:26 +0200 |
commit | ce2c5106374f1025af9bbef75e76b7b69f88905c (patch) | |
tree | 4f8046b0ba450e1f3a0bcbc812bbd895d8251a8a /src/util | |
parent | 2ec3b243218f174dd2f78ca7028ba84da1854ded (diff) | |
download | gnunet-ce2c5106374f1025af9bbef75e76b7b69f88905c.tar.gz gnunet-ce2c5106374f1025af9bbef75e76b7b69f88905c.zip |
UTIL: Remove unused variables
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/crypto_ecc.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/util/crypto_ecc.c b/src/util/crypto_ecc.c index 9dd9883dc..11c3e50d4 100644 --- a/src/util/crypto_ecc.c +++ b/src/util/crypto_ecc.c | |||
@@ -812,9 +812,7 @@ GNUNET_CRYPTO_ecdsa_fo_kem_encaps (const struct | |||
812 | struct GNUNET_HashCode x; | 812 | struct GNUNET_HashCode x; |
813 | struct GNUNET_HashCode ux; | 813 | struct GNUNET_HashCode ux; |
814 | struct GNUNET_HashCode w; | 814 | struct GNUNET_HashCode w; |
815 | struct GNUNET_HashCode y; | ||
816 | struct GNUNET_CRYPTO_EcdhePrivateKey sk; | 815 | struct GNUNET_CRYPTO_EcdhePrivateKey sk; |
817 | enum GNUNET_GenericReturnValue ret; | ||
818 | 816 | ||
819 | // This is the input to the FO OWTF | 817 | // This is the input to the FO OWTF |
820 | GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_NONCE, &x, sizeof(x)); | 818 | GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_NONCE, &x, sizeof(x)); |
@@ -847,7 +845,6 @@ GNUNET_CRYPTO_eddsa_fo_kem_encaps (const struct | |||
847 | struct GNUNET_HashCode x; | 845 | struct GNUNET_HashCode x; |
848 | struct GNUNET_HashCode ux; | 846 | struct GNUNET_HashCode ux; |
849 | struct GNUNET_HashCode w; | 847 | struct GNUNET_HashCode w; |
850 | struct GNUNET_HashCode y; | ||
851 | struct GNUNET_CRYPTO_EcdhePrivateKey sk; | 848 | struct GNUNET_CRYPTO_EcdhePrivateKey sk; |
852 | enum GNUNET_GenericReturnValue ret; | 849 | enum GNUNET_GenericReturnValue ret; |
853 | 850 | ||
@@ -881,10 +878,8 @@ fo_kem_decaps (const struct GNUNET_HashCode *w, | |||
881 | { | 878 | { |
882 | struct GNUNET_HashCode x; | 879 | struct GNUNET_HashCode x; |
883 | struct GNUNET_HashCode ux; | 880 | struct GNUNET_HashCode ux; |
884 | struct GNUNET_HashCode y; | ||
885 | struct GNUNET_CRYPTO_EcdhePrivateKey sk; | 881 | struct GNUNET_CRYPTO_EcdhePrivateKey sk; |
886 | struct GNUNET_CRYPTO_EcdhePublicKey pub_test; | 882 | struct GNUNET_CRYPTO_EcdhePublicKey pub_test; |
887 | enum GNUNET_GenericReturnValue ret; | ||
888 | 883 | ||
889 | // w xor x (one-time pad) | 884 | // w xor x (one-time pad) |
890 | GNUNET_CRYPTO_hash_xor (w, &c->y, &x); | 885 | GNUNET_CRYPTO_hash_xor (w, &c->y, &x); |
@@ -915,12 +910,7 @@ GNUNET_CRYPTO_eddsa_fo_kem_decaps (const struct | |||
915 | const struct GNUNET_CRYPTO_FoKemC *c, | 910 | const struct GNUNET_CRYPTO_FoKemC *c, |
916 | struct GNUNET_HashCode *key_material) | 911 | struct GNUNET_HashCode *key_material) |
917 | { | 912 | { |
918 | struct GNUNET_HashCode x; | ||
919 | struct GNUNET_HashCode ux; | ||
920 | struct GNUNET_HashCode w; | 913 | struct GNUNET_HashCode w; |
921 | struct GNUNET_HashCode y; | ||
922 | struct GNUNET_CRYPTO_EcdhePrivateKey sk; | ||
923 | struct GNUNET_CRYPTO_EcdhePublicKey pub_test; | ||
924 | enum GNUNET_GenericReturnValue ret; | 914 | enum GNUNET_GenericReturnValue ret; |
925 | 915 | ||
926 | ret = GNUNET_CRYPTO_eddsa_ecdh (priv, &c->pub, &w); | 916 | ret = GNUNET_CRYPTO_eddsa_ecdh (priv, &c->pub, &w); |
@@ -936,12 +926,7 @@ GNUNET_CRYPTO_ecdsa_fo_kem_decaps (const struct | |||
936 | struct GNUNET_CRYPTO_FoKemC *c, | 926 | struct GNUNET_CRYPTO_FoKemC *c, |
937 | struct GNUNET_HashCode *key_material) | 927 | struct GNUNET_HashCode *key_material) |
938 | { | 928 | { |
939 | struct GNUNET_HashCode x; | ||
940 | struct GNUNET_HashCode ux; | ||
941 | struct GNUNET_HashCode w; | 929 | struct GNUNET_HashCode w; |
942 | struct GNUNET_HashCode y; | ||
943 | struct GNUNET_CRYPTO_EcdhePrivateKey sk; | ||
944 | struct GNUNET_CRYPTO_EcdhePublicKey pub_test; | ||
945 | enum GNUNET_GenericReturnValue ret; | 930 | enum GNUNET_GenericReturnValue ret; |
946 | 931 | ||
947 | ret = GNUNET_CRYPTO_ecdsa_ecdh (priv, &c->pub, &w); | 932 | ret = GNUNET_CRYPTO_ecdsa_ecdh (priv, &c->pub, &w); |