Changeset e9ec043 for core/java


Ignore:
Timestamp:
Oct 13, 2018 2:36:39 PM (2 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
e326011
Parents:
e391992
Message:

Data: Encrypted LS2, other LS2 changes

Location:
core/java/src/net/i2p/data
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/data/LeaseSet2.java

    re391992 re9ec043  
    125125
    126126    public boolean verifyOfflineSignature() {
     127        return verifyOfflineSignature(_destination.getSigningPublicKey());
     128    }
     129
     130    protected boolean verifyOfflineSignature(SigningPublicKey spk) {
    127131        if (!isOffline())
    128132            return false;
     
    277281    }
    278282
    279     private void readOfflineBytes(InputStream in) throws DataFormatException, IOException {
     283    protected void readOfflineBytes(InputStream in) throws DataFormatException, IOException {
    280284        _transientExpires = DataHelper.readLong(in, 4) * 1000;
    281285        int itype = (int) DataHelper.readLong(in, 2);
     
    290294    }
    291295
    292     private void writeOfflineBytes(OutputStream out) throws DataFormatException, IOException {
     296    protected void writeOfflineBytes(OutputStream out) throws DataFormatException, IOException {
    293297        if (_transientSigningPublicKey == null || _offlineSignature == null)
    294298            throw new DataFormatException("No offline key/sig");
  • core/java/src/net/i2p/data/MetaLeaseSet.java

    re391992 re9ec043  
    11package net.i2p.data;
    22
    3 import java.io.ByteArrayOutputStream;
    43import java.io.IOException;
    54import java.io.InputStream;
    65import java.io.OutputStream;
    7 import java.util.Properties;
    86
    9 import net.i2p.I2PAppContext;
    10 import net.i2p.crypto.DSAEngine;
    11 import net.i2p.crypto.EncType;
    12 import net.i2p.crypto.SigAlgo;
    137import net.i2p.crypto.SigType;
    14 import net.i2p.util.Clock;
    15 import net.i2p.util.OrderedProperties;
    168
    179/**
Note: See TracChangeset for help on using the changeset viewer.