[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r28983 - gnunet-java/src/main/java/org/gnunet/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r28983 - gnunet-java/src/main/java/org/gnunet/util |
Date: |
Wed, 4 Sep 2013 13:26:29 +0200 |
Author: dold
Date: 2013-09-04 13:26:29 +0200 (Wed, 04 Sep 2013)
New Revision: 28983
Modified:
gnunet-java/src/main/java/org/gnunet/util/CryptoECC.java
Log:
comment
Modified: gnunet-java/src/main/java/org/gnunet/util/CryptoECC.java
===================================================================
--- gnunet-java/src/main/java/org/gnunet/util/CryptoECC.java 2013-09-04
11:20:04 UTC (rev 28982)
+++ gnunet-java/src/main/java/org/gnunet/util/CryptoECC.java 2013-09-04
11:26:29 UTC (rev 28983)
@@ -11,9 +11,8 @@
import java.security.NoSuchAlgorithmException;
/**
- * Implementation of the Ed25519 public-key signature system.
- * Original version written and placed into the public domain by k3d3
(https://github.com/k3d3/ed25519-java).
- * See also http://ed25519.cr.yp.to/.
+ * Implementation of the Ed25519 public-key signature system. See
http://ed25519.cr.yp.to/.
+ * Original Java version written and placed into the public domain by k3d3
(https://github.com/k3d3/ed25519-java).
*/
public class CryptoECC {
@@ -197,6 +196,13 @@
return h[i/8] >> (i%8) & 1;
}
+ /**
+ * Compute from a private key the scalar value that yields the public key
when
+ * multiplied with the generator point.
+ *
+ * @param sk private key
+ * @return public key coefficient
+ */
static private BigInteger computePublicKeyCoefficient(PrivateKey sk) {
byte[] h = sha512.digest(sk.d);
BigInteger a = BigInteger.valueOf(2).pow(b-2);
@@ -208,7 +214,7 @@
}
/**
- * Derive the public key from the private key 'sk',
+ * Derive the public key from the private key 'sk'.
*
* @param sk private key
* @return public key derived from 'sk'
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r28983 - gnunet-java/src/main/java/org/gnunet/util,
gnunet <=