aboutsummaryrefslogtreecommitdiff
path: root/src/util/crypto_ecc.c
diff options
context:
space:
mode:
authorSupriti Singh <supritisingh08@gmail.com>2014-01-27 10:51:33 +0000
committerSupriti Singh <supritisingh08@gmail.com>2014-01-27 10:51:33 +0000
commitb238cc48391682b2fee423f3cb4de1965eef1aaf (patch)
tree793f9372fedf9ba4d1c27e15e1be31e5c55de26e /src/util/crypto_ecc.c
parentdb51f79c2b0933f78b423b5cbe5ddb85562244a2 (diff)
downloadgnunet-b238cc48391682b2fee423f3cb4de1965eef1aaf.tar.gz
gnunet-b238cc48391682b2fee423f3cb4de1965eef1aaf.zip
-Modified struct PeerTrailSetupMessage.
-Modified struct PeerTrailSetupResultMessage. -Added stubs for find_predecessor. -Added comments to understand the flow.
Diffstat (limited to 'src/util/crypto_ecc.c')
-rw-r--r--src/util/crypto_ecc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/crypto_ecc.c b/src/util/crypto_ecc.c
index b60e8f52c..23d6ade7e 100644
--- a/src/util/crypto_ecc.c
+++ b/src/util/crypto_ecc.c
@@ -1452,7 +1452,7 @@ GNUNET_CRYPTO_ecdsa_private_key_derive (const struct GNUNET_CRYPTO_EcdsaPrivateK
1452 * Essentially calculates a public key 'V = H(l,P) * P'. 1452 * Essentially calculates a public key 'V = H(l,P) * P'.
1453 * 1453 *
1454 * @param pub original public key 1454 * @param pub original public key
1455 * @param label label to use for key deriviation 1455 * @param label label to use for key derivation
1456 * @param context additional context to use for HKDF of 'h'; 1456 * @param context additional context to use for HKDF of 'h';
1457 * typically the name of the subsystem/application 1457 * typically the name of the subsystem/application
1458 * @param result where to write the derived public key 1458 * @param result where to write the derived public key
@@ -1483,7 +1483,7 @@ GNUNET_CRYPTO_ecdsa_public_key_derive (const struct GNUNET_CRYPTO_EcdsaPublicKey
1483 q = gcry_mpi_ec_get_point ("q", ctx, 0); 1483 q = gcry_mpi_ec_get_point ("q", ctx, 0);
1484 GNUNET_assert (q); 1484 GNUNET_assert (q);
1485 1485
1486 /* calulcate h_mod_n = h % n */ 1486 /* calculate h_mod_n = h % n */
1487 h = derive_h (pub, label, context); 1487 h = derive_h (pub, label, context);
1488 n = gcry_mpi_ec_get_mpi ("n", ctx, 1); 1488 n = gcry_mpi_ec_get_mpi ("n", ctx, 1);
1489 h_mod_n = gcry_mpi_new (256); 1489 h_mod_n = gcry_mpi_new (256);