aboutsummaryrefslogtreecommitdiffstats
path: root/src/junit/com/jogamp/common
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2019-04-03 21:24:36 +0200
committerSven Gothel <[email protected]>2019-04-03 21:24:36 +0200
commit234bd58643e83aa7d34d752de3e98d6ae84cba3d (patch)
tree0dfa4034a4b780eb28a2c20cbebc02b2feea2222 /src/junit/com/jogamp/common
parent8954b8f1d4b051908f37773521f072843b66de01 (diff)
Bug 1369: SCC: Hide SHA Algorithm bit size in literals of Specification
Implementation currently uses 256 bit Secure Hash (SHA) algorithm, but this may change in the future. Hence only use 'SHA' in the names, not 'SHA256'.
Diffstat (limited to 'src/junit/com/jogamp/common')
-rw-r--r--src/junit/com/jogamp/common/util/TestVersionInfo.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/junit/com/jogamp/common/util/TestVersionInfo.java b/src/junit/com/jogamp/common/util/TestVersionInfo.java
index de0d8d6..c92e828 100644
--- a/src/junit/com/jogamp/common/util/TestVersionInfo.java
+++ b/src/junit/com/jogamp/common/util/TestVersionInfo.java
@@ -55,18 +55,18 @@ public class TestVersionInfo extends SingletonJunitCase {
}
@Test
- public void test02ValidateSHA256()
+ public void test02ValidateSHA()
throws IllegalArgumentException, IOException, URISyntaxException, SecurityException, NoSuchAlgorithmException
{
final GlueGenVersion info = GlueGenVersion.getInstance();
- final String sha256ClassesThis = info.getImplementationSHA256ClassesThis();
- System.err.println("SHA256 CLASSES.this (build-time): "+sha256ClassesThis);
+ final String shaClassesThis = info.getImplementationSHAClassesThis();
+ System.err.println("SHA CLASSES.this (build-time): "+shaClassesThis);
final GlueGenVersion.GluGenRTJarSHASum shaSum = new GlueGenVersion.GluGenRTJarSHASum();
final byte[] shasum = shaSum.compute(VERBOSE);
- final String sha256Classes = SHASum.toHexString(shasum, null).toString();
- System.err.println("SHA256 CLASSES.this (now): "+sha256Classes);
- Assert.assertEquals("SHA256 not equal", sha256ClassesThis, sha256Classes);
+ final String shaClasses = SHASum.toHexString(shasum, null).toString();
+ System.err.println("SHA CLASSES.this (now): "+shaClasses);
+ Assert.assertEquals("SHA not equal", shaClassesThis, shaClasses);
}
public static void main(final String args[]) throws IOException {