|
|
@ -61,6 +61,10 @@ public class MmsCipher {
|
|
|
|
byte[] decodedCiphertext = textTransport.getDecodedMessage(ciphertext.get());
|
|
|
|
byte[] decodedCiphertext = textTransport.getDecodedMessage(ciphertext.get());
|
|
|
|
byte[] plaintext;
|
|
|
|
byte[] plaintext;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (decodedCiphertext == null) {
|
|
|
|
|
|
|
|
throw new InvalidMessageException("failed to decode ciphertext");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
plaintext = sessionCipher.decrypt(new WhisperMessage(decodedCiphertext));
|
|
|
|
plaintext = sessionCipher.decrypt(new WhisperMessage(decodedCiphertext));
|
|
|
|
} catch (InvalidMessageException e) {
|
|
|
|
} catch (InvalidMessageException e) {
|
|
|
|