Better encryption support

This commit is contained in:
M66B
2019-01-05 14:09:47 +00:00
parent 1a15a1e931
commit eb27f5015a
8 changed files with 1324 additions and 15 deletions

View File

@@ -57,6 +57,9 @@ public class EntityAttachment {
static final String TABLE_NAME = "attachment";
static final int ATTACHMENT_BUFFER_SIZE = 8192; // bytes
static final Integer PGP_MESSAGE = 1;
static final Integer PGP_SIGNATURE = 2;
@PrimaryKey(autoGenerate = true)
public Long id;
@NonNull
@@ -67,8 +70,8 @@ public class EntityAttachment {
@NonNull
public String type;
public String cid; // Content-ID
public Integer encryption;
public Integer size;
public Integer progress;
@NonNull
public Boolean available = false;