简体   繁体   中英

Digital Signature Verification for more than 256 length

I am using RSA algorithm for the verification of digital signature in which take a 256 length. But I have to verify packets which have a variable length of signature like(344,328). If I will use RSA then got error below.

Exception in thread "main" java.security.SignatureException: Signature length not correct: got 328 but was expecting 256..

So which Algo I use which will verify signature of variable length?

Yes, Signature length will be fix 256 but In the case of 344 signature length they were encrypted the generated signature using Base64. Firstly I've to decrypt the signature bytes then verify.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM