I am using Cypher to decrypt data. But when I try to call the doFinal method, I get
java.lang.IllegalArgumentException: Null input buffer.
The erroneous line appears to be:
byte[] decoded = c2.doFinal(Base64.decode(encoded2));
Thanks
Nima
I am using Cypher to decrypt data. But when I try to call the doFinal method, I get
java.lang.IllegalArgumentException: Null input buffer.
The erroneous line appears to be:
byte[] decoded = c2.doFinal(Base64.decode(encoded2));
Thanks
Nima
First question...what's Cypher?
There is no Cypher implementation in MIDP 1.0 or 2.0 (as far as I'm aware).
The only one I can think of is in JavaCard, though I'm guessing it's not that as it's spelt 'Cipher' and the doFinal method takes more than one parameter:
[FONT=Courier New]public abstract short doFinal(byte[] inBuff,
short inOffset,
short inLength,
byte[] outBuff,
short outOffset)
throws CryptoException [/FONT]
Only other thing I could think of is that it's part of PersonalJava?