aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_crypto_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-02-05 20:49:21 +0000
committerChristian Grothoff <christian@grothoff.org>2013-02-05 20:49:21 +0000
commitca35f67faee8371fa763bdf49f04a8d5d4cdc021 (patch)
tree5535df5e5a2428ed838c6a0e60b2c6c68a7842c5 /src/include/gnunet_crypto_lib.h
parentdd7cca21c5dbaef4d56f92bab3932f0f73d092d1 (diff)
downloadgnunet-ca35f67faee8371fa763bdf49f04a8d5d4cdc021.tar.gz
gnunet-ca35f67faee8371fa763bdf49f04a8d5d4cdc021.zip
switching to ECDHE cryptography f, implementation is incomplete and INSECURE, do not use for anything but testing
Diffstat (limited to 'src/include/gnunet_crypto_lib.h')
-rw-r--r--src/include/gnunet_crypto_lib.h17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h
index 6120b48d8..fb299267b 100644
--- a/src/include/gnunet_crypto_lib.h
+++ b/src/include/gnunet_crypto_lib.h
@@ -323,10 +323,6 @@ struct GNUNET_CRYPTO_AesSessionKey
323 */ 323 */
324 unsigned char key[GNUNET_CRYPTO_AES_KEY_LENGTH]; 324 unsigned char key[GNUNET_CRYPTO_AES_KEY_LENGTH];
325 325
326 /**
327 * checksum!
328 */
329 uint32_t crc32 GNUNET_PACKED;
330}; 326};
331GNUNET_NETWORK_STRUCT_END 327GNUNET_NETWORK_STRUCT_END
332 328
@@ -451,17 +447,6 @@ GNUNET_CRYPTO_aes_create_session_key (struct GNUNET_CRYPTO_AesSessionKey *key);
451 447
452 448
453/** 449/**
454 * Check that a new session key is well-formed.
455 *
456 * @param key key to check
457 * @return GNUNET_OK if the key is valid
458 */
459int
460GNUNET_CRYPTO_aes_check_session_key (const struct GNUNET_CRYPTO_AesSessionKey
461 *key);
462
463
464/**
465 * Encrypt a block with the public key of another 450 * Encrypt a block with the public key of another
466 * host that uses the same cyper. 451 * host that uses the same cyper.
467 * 452 *
@@ -1199,7 +1184,7 @@ GNUNET_CRYPTO_ecc_key_get_public (const struct GNUNET_CRYPTO_EccPrivateKey *priv
1199 * @return string representing 'pub' 1184 * @return string representing 'pub'
1200 */ 1185 */
1201char * 1186char *
1202GNUNET_CRYPTO_ecc_public_key_to_string (struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded *pub); 1187GNUNET_CRYPTO_ecc_public_key_to_string (const struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded *pub);
1203 1188
1204 1189
1205/** 1190/**