diff options
author | teor (Tim Wilson-Brown) <teor2345@gmail.com> | 2016-02-24 23:24:01 +0800 |
---|---|---|
committer | teor (Tim Wilson-Brown) <teor2345@gmail.com> | 2016-02-24 23:24:01 +0800 |
commit | 9ab1037de1c03b4a41186a1318674c2c3fa6d779 (patch) | |
tree | 7c0b567691afa5acd4b1db05cbc095f61770d916 /src/ext/ed25519 | |
parent | e019e11e61c2c57c84505aaf2559966bddd4a10d (diff) | |
download | tor-9ab1037de1c03b4a41186a1318674c2c3fa6d779.tar.gz tor-9ab1037de1c03b4a41186a1318674c2c3fa6d779.zip |
Silence clang-scan warnings in ed25519_donna
Diffstat (limited to 'src/ext/ed25519')
-rw-r--r-- | src/ext/ed25519/donna/ed25519_tor.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ext/ed25519/donna/ed25519_tor.c b/src/ext/ed25519/donna/ed25519_tor.c index ac726ba045..52b259dfe1 100644 --- a/src/ext/ed25519/donna/ed25519_tor.c +++ b/src/ext/ed25519/donna/ed25519_tor.c @@ -168,8 +168,8 @@ ed25519_donna_seckey_expand(unsigned char *sk, const unsigned char *skseed) int ed25519_donna_pubkey(unsigned char *pk, const unsigned char *sk) { - bignum256modm a; - ge25519 ALIGN(16) A; + bignum256modm a = {0}; + ge25519 ALIGN(16) A = {{0}, {0}, {0}, {0}}; /* A = aB */ expand256_modm(a, sk, 32); @@ -204,8 +204,8 @@ ed25519_donna_sign(unsigned char *sig, const unsigned char *m, size_t mlen, const unsigned char *sk, const unsigned char *pk) { ed25519_hash_context ctx; - bignum256modm r, S, a; - ge25519 ALIGN(16) R; + bignum256modm r = {0}, S, a; + ge25519 ALIGN(16) R = {{0}, {0}, {0}, {0}}; hash_512bits hashr, hram; /* This is equivalent to the removed `ED25519_FN(ed25519_sign)` routine, |