Is there a size restriction on signatures in Java (java.security)?

Posted by Gregory Porter on Stack Overflow See other posts from Stack Overflow or by Gregory Porter
Published on 2010-04-20T19:47:47Z Indexed on 2010/04/20 19:53 UTC
Read the original article Hit count: 299

Filed under:
|
|
|

I am trying to sign a token object using SHA1. I am using bouncycastle as the security provider. Whenever the program tries to sign something it gives me this error.

java.security.SignatureException: java.lang.IllegalArgumentException: input data too large.

What is the maximum size for signing something? Do you have any suggestions about how I can sign this object?

© Stack Overflow or respective owner

Related posts about java

Related posts about security