Changeset 5ca9802


Ignore:
Timestamp:
Jan 10, 2019 4:21:48 PM (19 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
17228de
Parents:
0c15936
Message:

I2CP: Router-side stub for enc. ls2; throw for now

File:
1 edited

Legend:

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

    r0c15936 r5ca9802  
    108108                _signingPrivateKey = new SigningPrivateKey(stype);
    109109                _signingPrivateKey.readBytes(in);
    110                 if (type == DatabaseEntry.KEY_TYPE_LS2) {
     110                if (type == DatabaseEntry.KEY_TYPE_LS2 ||
     111                    type == DatabaseEntry.KEY_TYPE_ENCRYPTED_LS2) {
    111112                    LeaseSet2 ls2 = (LeaseSet2) _leaseSet;
    112113                    // get one PrivateKey for each PublicKey
     114                    // TODO decrypt an encrypted LS so we can get the keys
    113115                    List<PublicKey> pks = ls2.getEncryptionKeys();
     116                    if (pks == null)
     117                        throw new I2CPMessageException("TODO decrypt");
    114118                    for (PublicKey pk : pks) {
    115119                        EncType etype = pk.getType();
Note: See TracChangeset for help on using the changeset viewer.