aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_crypto_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_crypto_lib.h')
-rw-r--r--src/include/gnunet_crypto_lib.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h
index 1bfa988c2..5b6d238c5 100644
--- a/src/include/gnunet_crypto_lib.h
+++ b/src/include/gnunet_crypto_lib.h
@@ -1244,11 +1244,15 @@ GNUNET_CRYPTO_ecc_encode_key (const struct GNUNET_CRYPTO_EccPrivateKey *key);
1244 * 1244 *
1245 * @param buf the buffer where the private key data is stored 1245 * @param buf the buffer where the private key data is stored
1246 * @param len the length of the data in 'buffer' 1246 * @param len the length of the data in 'buffer'
1247 * @param validate GNUNET_YES to validate that the key is well-formed,
1248 * GNUNET_NO if the key comes from a totally trusted source
1249 * and validation is considered too expensive
1247 * @return NULL on error 1250 * @return NULL on error
1248 */ 1251 */
1249struct GNUNET_CRYPTO_EccPrivateKey * 1252struct GNUNET_CRYPTO_EccPrivateKey *
1250GNUNET_CRYPTO_ecc_decode_key (const char *buf, 1253GNUNET_CRYPTO_ecc_decode_key (const char *buf,
1251 size_t len); 1254 size_t len,
1255 int validate);
1252 1256
1253 1257
1254/** 1258/**