diff options
author | Kenny Root <kenny@the-b.org> | 2015-06-09 18:49:03 -0700 |
---|---|---|
committer | Kenny Root <kenny@the-b.org> | 2015-06-09 18:49:03 -0700 |
commit | a303d63569a47ea5d9d54d699cd7d62752132b69 (patch) | |
tree | 000be7b7d16422328869f04759e02a8449e90922 /lib/src/main/java/com/trilead | |
parent | e61134b793527bda18084a42319dd975c7147890 (diff) | |
download | sshlib-a303d63569a47ea5d9d54d699cd7d62752132b69.tar.gz sshlib-a303d63569a47ea5d9d54d699cd7d62752132b69.tar.bz2 sshlib-a303d63569a47ea5d9d54d699cd7d62752132b69.zip |
Change MessageDigest algorithms to standard name
These message digests need a hyphen according to
https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#MessageDigest
Fixes #87
Diffstat (limited to 'lib/src/main/java/com/trilead')
-rw-r--r-- | lib/src/main/java/com/trilead/ssh2/signature/ECDSASHA2Verify.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/src/main/java/com/trilead/ssh2/signature/ECDSASHA2Verify.java b/lib/src/main/java/com/trilead/ssh2/signature/ECDSASHA2Verify.java index 7d8dd3e..281a59d 100644 --- a/lib/src/main/java/com/trilead/ssh2/signature/ECDSASHA2Verify.java +++ b/lib/src/main/java/com/trilead/ssh2/signature/ECDSASHA2Verify.java @@ -369,11 +369,11 @@ public class ECDSASHA2Verify { public static String getDigestAlgorithmForParams(ECParameterSpec params) { int size = getCurveSize(params); if (size <= 256) { - return "SHA256"; + return "SHA-256"; } else if (size <= 384) { - return "SHA384"; + return "SHA-384"; } else { - return "SHA512"; + return "SHA-512"; } } |