Code example for SignatureException

0
 
        try { 
            int result = NativeCrypto.EVP_VerifyFinal(ctx, sigBytes, 0, sigBytes.length, handle);
            return result == 1;
        } catch (Exception ex) {
            throw new SignatureException(ex);
        } 
 
    } 
 
    @Override protected void finalize() throws Throwable { 
        try { 
            if (dsa != 0) {
                NativeCrypto.EVP_PKEY_free(dsa);
            } 
 
            if (rsa != 0) {
                NativeCrypto.EVP_PKEY_free(rsa);
            } 
 
            if (ctx != 0) {