[Bug 203017] java/openjdk8: unlimited strength policy option not working

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Sep 10 20:25:29 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203017

Jung-uk Kim <jkim at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jkim at FreeBSD.org

--- Comment #2 from Jung-uk Kim <jkim at FreeBSD.org> ---
It seems working fine for me.

% cat TestUCE.java
import javax.crypto.Cipher;

public class TestUCE {
  public static void main(String args[]) throws Exception {
    boolean unlimited =
      Cipher.getMaxAllowedKeyLength("RC5") >= 256;
    System.out.println("Unlimited cryptography enabled: " + unlimited);
  }
}
% /usr/local/openjdk8/bin/javac TestUCE.java 
% /usr/local/openjdk8/bin/java TestUCE
Unlimited cryptography enabled: true
% /usr/local/linux-oracle-jdk1.8.0/bin/java TestUCE
Unlimited cryptography enabled: false

Note the test code was taken from here:

http://stackoverflow.com/questions/7953567/checking-if-unlimited-cryptography-is-available

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-java mailing list