From 234bd58643e83aa7d34d752de3e98d6ae84cba3d Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 3 Apr 2019 21:24:36 +0200 Subject: 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'. --- src/junit/com/jogamp/common/util/TestVersionInfo.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/junit/com/jogamp/common/util/TestVersionInfo.java') 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 { -- cgit v1.2.3