Changeset cd83c48


Ignore:
Timestamp:
May 7, 2014 2:41:28 PM (7 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
fb9a4eb
Parents:
5b2766d
Message:

DSAEngine: Minor cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/crypto/DSAEngine.java

    r5b2766d rcd83c48  
    390390        long start = _context.clock().now();
    391391
    392         Signature sig = new Signature();
    393392        BigInteger k;
    394393
     
    453452                out[i + 20 + 20 - sbytes.length] = sbytes[i];
    454453        }
    455         sig.setData(out);
    456454
    457455        long diff = _context.clock().now() - start;
     
    460458        }
    461459
    462         return sig;
     460        return new Signature(out);
    463461    }
    464462   
     
    646644                return "NONEwithRSA";
    647645            default:
    648                 throw new IllegalArgumentException();
     646                throw new UnsupportedOperationException("Raw signatures unsupported for " + type);
    649647        }
    650648    }
     
    658656        if (key instanceof RSAKey)
    659657            return "NONEwithRSA";
    660         throw new IllegalArgumentException();
     658        throw new UnsupportedOperationException("Raw signatures unsupported for " + key.getClass().getName());
    661659    }
    662660
Note: See TracChangeset for help on using the changeset viewer.