MessageDigest - digest(buff,0,-1) -- eroor

Hi Friends,

I am new to security package:::

i am using this code for calculating digest

[b]

protectedstatic MessageDigest md5Obj;

int temp=0;

temp=md5Obj.digest(buff,0,buff.length);[/b]

when i am executing this code i am getting this exception....

java.security.DigestException: Digest too long.

Could any one help in describing function parameters, what value should i provide.

[549 byte] By [rollno1a] at [2007-11-27 8:15:37]
# 1
I might be completely off the hook here, but aren't you posting this somewhat in the wrong forum? This is a JavaCard forum, while your code looks like regular Java to me.
Lillesanda at 2007-7-12 20:00:26 > top of Java-index,Java Mobility Forums,Consumer and Commerce...