Protocol refactoring. Each bundle now consists of a signed header and zero or...
Protocol refactoring. Each bundle now consists of a signed header and zero or more signed batches. There is no overall signature on the bundle, since the bundle's contents may need to be processed before the entire bundle has been read. The protocol does not prevent an adversary from removing batches from a bundle, reordering batches, moving them from one bundle to another, etc. However, since each batch is signed and acknowledged independently, no such guarantees are required. Bundle IDs will go away when the retransmission mechanism is changed.
Showing
- api/net/sf/briar/api/db/DatabaseComponent.java 4 additions, 2 deletionsapi/net/sf/briar/api/db/DatabaseComponent.java
- api/net/sf/briar/api/protocol/Batch.java 6 additions, 3 deletionsapi/net/sf/briar/api/protocol/Batch.java
- api/net/sf/briar/api/protocol/BatchBuilder.java 6 additions, 1 deletionapi/net/sf/briar/api/protocol/BatchBuilder.java
- api/net/sf/briar/api/protocol/Bundle.java 13 additions, 20 deletionsapi/net/sf/briar/api/protocol/Bundle.java
- api/net/sf/briar/api/protocol/BundleBuilder.java 7 additions, 11 deletionsapi/net/sf/briar/api/protocol/BundleBuilder.java
- api/net/sf/briar/api/protocol/Header.java 28 additions, 0 deletionsapi/net/sf/briar/api/protocol/Header.java
- api/net/sf/briar/api/protocol/HeaderBuilder.java 24 additions, 0 deletionsapi/net/sf/briar/api/protocol/HeaderBuilder.java
- api/net/sf/briar/api/protocol/MessageParser.java 10 additions, 0 deletionsapi/net/sf/briar/api/protocol/MessageParser.java
- api/net/sf/briar/api/protocol/UniqueId.java 3 additions, 1 deletionapi/net/sf/briar/api/protocol/UniqueId.java
- components/net/sf/briar/db/DatabaseComponentImpl.java 4 additions, 0 deletionscomponents/net/sf/briar/db/DatabaseComponentImpl.java
- components/net/sf/briar/db/ReadWriteLockDatabaseComponent.java 50 additions, 43 deletions...nents/net/sf/briar/db/ReadWriteLockDatabaseComponent.java
- components/net/sf/briar/db/SynchronizedDatabaseComponent.java 49 additions, 41 deletions...onents/net/sf/briar/db/SynchronizedDatabaseComponent.java
- components/net/sf/briar/protocol/BatchImpl.java 11 additions, 13 deletionscomponents/net/sf/briar/protocol/BatchImpl.java
- components/net/sf/briar/protocol/BundleReader.java 94 additions, 0 deletionscomponents/net/sf/briar/protocol/BundleReader.java
- components/net/sf/briar/protocol/BundleWriter.java 66 additions, 0 deletionscomponents/net/sf/briar/protocol/BundleWriter.java
- components/net/sf/briar/protocol/FileBundle.java 30 additions, 0 deletionscomponents/net/sf/briar/protocol/FileBundle.java
- components/net/sf/briar/protocol/FileBundleBuilder.java 41 additions, 0 deletionscomponents/net/sf/briar/protocol/FileBundleBuilder.java
- components/net/sf/briar/protocol/HeaderImpl.java 55 additions, 0 deletionscomponents/net/sf/briar/protocol/HeaderImpl.java
- components/net/sf/briar/protocol/MessageImpl.java 2 additions, 1 deletioncomponents/net/sf/briar/protocol/MessageImpl.java
- components/net/sf/briar/protocol/ProtocolModule.java 0 additions, 7 deletionscomponents/net/sf/briar/protocol/ProtocolModule.java
Loading
Please register or sign in to comment