I am getting the exception ,
java.security.SignatureException: invalid encoding for signature
in my program . the following is the code snippet
Signature sig=Signature.getInstance("SHA1WithDSA"); sig.initVerify(qakeyPair.getPublic()); sig.update(data.getBytes()); sig.verify(sig_bytes) why is this happening..?