aboutsummaryrefslogtreecommitdiff
path: root/src/util/crypto_ecc.c
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2014-01-20 20:14:44 +0000
committerFlorian Dold <florian.dold@gmail.com>2014-01-20 20:14:44 +0000
commit45f27dcbeb7b385cdc4a358e44f691676db23ae2 (patch)
tree950385db7f6bbe0356030ce408b05e72fe1759f1 /src/util/crypto_ecc.c
parente502c61183209be8224d584107e7faf7523c1918 (diff)
downloadgnunet-45f27dcbeb7b385cdc4a358e44f691676db23ae2.tar.gz
gnunet-45f27dcbeb7b385cdc4a358e44f691676db23ae2.zip
- remove adjust
Diffstat (limited to 'src/util/crypto_ecc.c')
-rw-r--r--src/util/crypto_ecc.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/util/crypto_ecc.c b/src/util/crypto_ecc.c
index 71b8470fe..b60e8f52c 100644
--- a/src/util/crypto_ecc.c
+++ b/src/util/crypto_ecc.c
@@ -112,27 +112,6 @@ key_from_sexp (gcry_mpi_t * array, gcry_sexp_t sexp, const char *topname,
112 112
113 113
114/** 114/**
115 * If target != size, move @a target bytes to the end of the size-sized
116 * buffer and zero out the first @a target - @a size bytes.
117 *
118 * @param buf original buffer
119 * @param size number of bytes in @a buf
120 * @param target target size of the buffer
121 */
122static void
123adjust (unsigned char *buf,
124 size_t size,
125 size_t target)
126{
127 if (size < target)
128 {
129 memmove (&buf[target - size], buf, size);
130 memset (buf, 0, target - size);
131 }
132}
133
134
135/**
136 * Convert the given private key from the network format to the 115 * Convert the given private key from the network format to the
137 * S-expression that can be used by libgcrypt. 116 * S-expression that can be used by libgcrypt.
138 * 117 *