[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r31958 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r31958 - gnunet/src/util |
Date: |
Mon, 20 Jan 2014 21:14:45 +0100 |
Author: dold
Date: 2014-01-20 21:14:44 +0100 (Mon, 20 Jan 2014)
New Revision: 31958
Modified:
gnunet/src/util/crypto_ecc.c
Log:
- remove adjust
Modified: gnunet/src/util/crypto_ecc.c
===================================================================
--- gnunet/src/util/crypto_ecc.c 2014-01-20 19:59:22 UTC (rev 31957)
+++ gnunet/src/util/crypto_ecc.c 2014-01-20 20:14:44 UTC (rev 31958)
@@ -112,27 +112,6 @@
/**
- * If target != size, move @a target bytes to the end of the size-sized
- * buffer and zero out the first @a target - @a size bytes.
- *
- * @param buf original buffer
- * @param size number of bytes in @a buf
- * @param target target size of the buffer
- */
-static void
-adjust (unsigned char *buf,
- size_t size,
- size_t target)
-{
- if (size < target)
- {
- memmove (&buf[target - size], buf, size);
- memset (buf, 0, target - size);
- }
-}
-
-
-/**
* Convert the given private key from the network format to the
* S-expression that can be used by libgcrypt.
*
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r31958 - gnunet/src/util,
gnunet <=