Skip to content

Commit

Permalink
compatibility change
Browse files Browse the repository at this point in the history
  • Loading branch information
dghgit committed Aug 28, 2018
1 parent b54c12d commit 1d3b7f7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ class DHUtil
{
static String privateKeyToString(String algorithm, BigInteger x, DHParameters dhParams)
{
StringBuilder buf = new StringBuilder();
String nl = Strings.lineSeparator();
StringBuffer buf = new StringBuffer();
String nl = Strings.lineSeparator();

BigInteger y = dhParams.getG().modPow(x, dhParams.getP());

Expand All @@ -25,8 +25,8 @@ static String privateKeyToString(String algorithm, BigInteger x, DHParameters dh

static String publicKeyToString(String algorithm, BigInteger y, DHParameters dhParams)
{
StringBuilder buf = new StringBuilder();
String nl = Strings.lineSeparator();
StringBuffer buf = new StringBuffer();
String nl = Strings.lineSeparator();

buf.append(algorithm);
buf.append(" Public Key [").append(generateKeyFingerprint(y, dhParams)).append("]").append(nl);
Expand Down

0 comments on commit 1d3b7f7

Please sign in to comment.