Support for location drafts

Fixes #4979
// FREEBIE
This commit is contained in:
Moxie Marlinspike
2016-01-04 13:02:22 -08:00
parent 83ec4e0627
commit 759f9d8016
8 changed files with 108 additions and 42 deletions

View File

@@ -75,7 +75,7 @@ public class MasterCipher {
return encryptBytes(privateKey.serialize());
}
public String encryptBody(String body) {
public String encryptBody(@NonNull String body) {
return encryptAndEncodeBytes(body.getBytes());
}
@@ -149,7 +149,7 @@ public class MasterCipher {
}
}
private String encryptAndEncodeBytes(byte[] bytes) {
private String encryptAndEncodeBytes(@NonNull byte[] bytes) {
byte[] encryptedAndMacBody = encryptBytes(bytes);
return Base64.encodeBytes(encryptedAndMacBody);
}