Code example for SignatureException

0
        { 
            throw new SignatureException("key too small for signature type");
        } 
        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);
 
        byte[]      sig;
        byte[]      expected;
 
        try