• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Max RSA key length

 
Ranch Hand
Posts: 290
Oracle Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Does JDK 1.6 support unlimited RSA key size i.e. there is no restriction:
From default_local.policy:
permission javax.crypto.CryptoPermission "RSA", *;

Thanks
Aryan
 
Rancher
Posts: 4803
7
Mac OS X VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why would you want unlimited RSA key lengths?
As lengths get longer, performance gets much worse. 2048 is plenty long for anything today. 4096 is overkill unless you are NSA.
 
Aryan Khan
Ranch Hand
Posts: 290
Oracle Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Pat,
Sorry I meant to say that with out downloading the unlimited jurisdiction policy files, JDK 6 allows unrestricted RSA key lengths.

And only RSA is allowed as for the rest I still can see the limits in policy file.

Any specific reasons for this?

Thanks
Aryan
 
Pat Farrell
Rancher
Posts: 4803
7
Mac OS X VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Aryan Khan:
Any specific reasons for this?



Yes, encryption has long been considered a military item, goes back to Julius Caesar. Many governments don't want strong encryption to be used.

Breaking the enigma code by Brittan in WW2 was considered a major reason that they could survive until the US entered the war. Breaking the Japanese Purple code was also a major part of the war in the Pacific.

The laws have become more reasonable in recent years, but export of strong encryption is regulated in many countries. Use of strong encryption was illegal in a surprisingly large number of countries until recently. I haven't checked today, but it may still be illegal in some.

It is illegal for me, a US citizen in the US to even tell you how to get around the ITAR restrictions that the US places on crypto export.
 
reply
    Bookmark Topic Watch Topic
  • New Topic