mirror of
https://github.com/oxen-io/session-android.git
synced 2025-01-11 22:13:38 +00:00
Minor cleanup.
// FREEBIE
This commit is contained in:
parent
a9637baddf
commit
0fb7f3b970
@ -16,8 +16,6 @@
|
|||||||
*/
|
*/
|
||||||
package org.whispersystems.textsecure.api.crypto;
|
package org.whispersystems.textsecure.api.crypto;
|
||||||
|
|
||||||
import android.util.Log;
|
|
||||||
|
|
||||||
import org.whispersystems.libaxolotl.InvalidMacException;
|
import org.whispersystems.libaxolotl.InvalidMacException;
|
||||||
import org.whispersystems.libaxolotl.InvalidMessageException;
|
import org.whispersystems.libaxolotl.InvalidMessageException;
|
||||||
import org.whispersystems.textsecure.internal.util.Util;
|
import org.whispersystems.textsecure.internal.util.Util;
|
||||||
@ -109,15 +107,8 @@ public class AttachmentCipherInputStream extends FileInputStream {
|
|||||||
|
|
||||||
done = true;
|
done = true;
|
||||||
return flourish;
|
return flourish;
|
||||||
} catch (IllegalBlockSizeException e) {
|
} catch (IllegalBlockSizeException | BadPaddingException | ShortBufferException e) {
|
||||||
Log.w("EncryptingPartInputStream", e);
|
throw new IOException(e);
|
||||||
throw new IOException("Illegal block size exception!");
|
|
||||||
} catch (ShortBufferException e) {
|
|
||||||
Log.w("EncryptingPartInputStream", e);
|
|
||||||
throw new IOException("Short buffer exception!");
|
|
||||||
} catch (BadPaddingException e) {
|
|
||||||
Log.w("EncryptingPartInputStream", e);
|
|
||||||
throw new IOException("Bad padding exception!");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
package org.whispersystems.textsecure.api.push.exceptions;
|
package org.whispersystems.textsecure.api.push.exceptions;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
public class UnregisteredUserException extends IOException {
|
public class UnregisteredUserException extends IOException {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user