This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Journey To Enterprise Agility and have Daryl Kulak & Hong Li on-line!
See this thread for details.
Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

AES CFB/NoPadding with BouncyCastle LightWeight API  RSS feed

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to achieve AES/CFB/NoPadding using BouncyCastle in J2ME.
I need that only because several other components in my system already are using that algorithm and J2ME optional package(JSR 177) supports AES but not CFB flavor.Iam getting a NoSuchAlogrithmException
So iam using bouncycastle and
I got an instance of cipher in the following way.

The above code works fine but if i give "abcdefghijklmo" as the input a DataLengthException is being thrown. But i need the capability to encrypt a 15 letter string also.
The crypto.Cipher in j2Se works fine with 15 letter strings also.
And more over if i have a 20 letter string.The encryptBlock function in CFBBlockCipher is giving only encrypted first 16 letters.
I'm sorry if my question is naive but i tried a lot and bouncycastle is poorly documented. I can't help.

Thanks in advance.
VarunKumar Mallisetty.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!