Code example for SignatureException

0
 
            return derEncode(sig[0], sig[1]);
        } 
        catch (Exception e)
        { 
            throw new SignatureException(e.toString());
        } 
    } 
 
    protected boolean engineVerify( 
        byte[]  sigBytes) 
        throws SignatureException 
    { 
        byte[]  hash = new byte[digest.getDigestSize()];
 
        digest.doFinal(hash, 0);
 
        BigInteger[]    sig;
 
        try 
        {