diff options
author | Werner Koch <wk@gnupg.org> | 2014-07-24 11:12:37 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2014-07-25 08:13:56 +0200 |
commit | 4e0bf1b9190ce08fb23eb3ae0c3be58954ff36ab (patch) | |
tree | 0c8936989f7f66d29ad6029b867d8ea7bf2d4aab /cipher | |
parent | 4846e52728970e3117f3a046ef9010be089a3ae4 (diff) | |
download | libgcrypt-4e0bf1b9190ce08fb23eb3ae0c3be58954ff36ab.tar.gz |
cipher: Fix compiler warning for chacha20.
* cipher/chacha20.c (chacha20_blocks) [!USE_SSE2]: Do not build.
Diffstat (limited to 'cipher')
-rw-r--r-- | cipher/chacha20.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cipher/chacha20.c b/cipher/chacha20.c index 03416d4d..ebba2fcb 100644 --- a/cipher/chacha20.c +++ b/cipher/chacha20.c @@ -121,6 +121,8 @@ static const char *selftest (void); #define QOUT(ai, bi, ci, di) \ DO_OUT(ai); DO_OUT(bi); DO_OUT(ci); DO_OUT(di) + +#ifndef USE_SSE2 static unsigned int chacha20_blocks (u32 *state, const byte *src, byte *dst, size_t bytes) { @@ -240,6 +242,7 @@ chacha20_blocks (u32 *state, const byte *src, byte *dst, size_t bytes) /* burn_stack */ return (2 * CHACHA20_INPUT_LENGTH * sizeof(u32) + 6 * sizeof(void *)); } +#endif /*!USE_SSE2*/ #undef QROUND #undef QOUT |