W***@public.gmane.org
2014-08-20 15:25:22 UTC
Hi folks.
I'm using Java on proprietary hardware. I'm stuck with Java 2 1.4.2:
java.fullversion=J2RE 1.4.2 IBM OS4690 build cf142-201...
java.runtime.name=Java(TM) 2 Runtime Environment, Stand...
java.runtime.version=1.4.2
java.specification.version=1.4
java.version=1.4.2
java.vm.info=J2RE 1.4.2 IBM OS4690 build cf142-201...
java.vm.version=1.4.2
When I try the following:
Mac.getInstance("HmacSHA256");
I receive the following exception:
java.security.NoSuchAlgorithmException: Algorithm HmacSHA256 not available
I've heard good things about Bouncy Castle. I see that I can add Bouncy
Castle dynamically as a provider via:
import org.bouncycastle.jce.provider.BouncyCastleProvider;
...
Security.addProvider(new BouncyCastleProvider());
Q1) Which part(s) of Bouncy Castle do I need to download to get to obtain
support for HmacSHA256?
Q2) Which version(s) of that part(s) of Bouncy Castle will work on Java 2
1.4.2?
I think that's it!
Thanks,
Bill in Massachusetts USA.
I'm using Java on proprietary hardware. I'm stuck with Java 2 1.4.2:
java.fullversion=J2RE 1.4.2 IBM OS4690 build cf142-201...
java.runtime.name=Java(TM) 2 Runtime Environment, Stand...
java.runtime.version=1.4.2
java.specification.version=1.4
java.version=1.4.2
java.vm.info=J2RE 1.4.2 IBM OS4690 build cf142-201...
java.vm.version=1.4.2
When I try the following:
Mac.getInstance("HmacSHA256");
I receive the following exception:
java.security.NoSuchAlgorithmException: Algorithm HmacSHA256 not available
I've heard good things about Bouncy Castle. I see that I can add Bouncy
Castle dynamically as a provider via:
import org.bouncycastle.jce.provider.BouncyCastleProvider;
...
Security.addProvider(new BouncyCastleProvider());
Q1) Which part(s) of Bouncy Castle do I need to download to get to obtain
support for HmacSHA256?
Q2) Which version(s) of that part(s) of Bouncy Castle will work on Java 2
1.4.2?
I think that's it!
Thanks,
Bill in Massachusetts USA.