Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2007

Tip: Looking for answers? Try searching our database.

where is AES implemented?

Thread view: 
yawnmoth - 25 Apr 2007 17:53 GMT
According to <http://java.sun.com/developer/technicalArticles/Security/
AES/AES_v1.html>, you can encrypt stuff with AES using
javax.crypto.Cipher (among other objects).  I downloaded the Java
sources at <http://download.java.net/jdk6/> and did not find any
crypto.* classes in the directory I would have expected to - the j2se
\src\share\classes\javax .  Every other class I can think of is
implemented in j2se\src\share\classes\*, so why not crypto?

Never-the-less, I did find a copy of it at <http://
developer.classpath.org/doc/javax/crypto/Cipher-source.html>.
Unfortunately, it still leaves me guessing as to where Java's
implementation of AES actually is.  Any ideas?
rossum - 25 Apr 2007 20:09 GMT
>According to <http://java.sun.com/developer/technicalArticles/Security/
>AES/AES_v1.html>, you can encrypt stuff with AES using
[quoted text clipped - 8 lines]
>Unfortunately, it still leaves me guessing as to where Java's
>implementation of AES actually is.  Any ideas?

It is in javax.crypto.Cipher as you suspected.  There is no explicit
AES class, it is one of the possible cyphers that Cipher can use.  You
specify it in the transformation string: cypher/mode/padding.

 Cipher myAESCypher = Cipher.getInstance("AES/CBC/PKCS5Padding");

Your implementation will throw an error if it does not have AES
available.

rossum


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.