• 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

lightweight AES library

 
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi. Does anyone know where to get a good and lightweight AES library for Java. It should be able to perform AES 256. Bouncycastle is not my choice for now because it contains other encryption algo. I just want pure AES in the library. Thanks.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
BouncyCastle being open source, you should be able to remove all the other stuff from the library until nothing but AES is left. The same could be done with the cryptix.org library. Or you could search for "java rijndael implementation" (Rijndael became AES) - there are bound to be more implementations out there (be sure to test them against the NIST test vectors, though).
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tay - I also need AES 256 java implementation that support 256 blocksize. Please let me know if your research found something suitable for AES 256.

Happy Holidays
 
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
AES 256 refers to AES with a 256 bit key -- and a blocksize of 128 bits. There is no such thing as AES with a 256 bit blocksize. You can sensibly ask for Rijndael with a 256 bit blocksize.
 
Tay Thotheolh
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As greg said, AES 256 meant 256 bit key. AES is 128 blocksize, not 256 blocksize. AES 256 meant AES with 256 bit keys, not block size (128 block size cipher for AES). Some people would refer to the Blowfish cipher as Blowfish 448 which means it's still a 64 blocksize but a key of 448 bits long. If a stronger cipher is needed, anyone can turn to the Serpent cipher.
 
It's just like a fortune cookie, but instead of a cookie, it's pie. And we'll call it ... tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic