Skip to content
Snippets Groups Projects
Commit f6e5ef41 authored by akwizgran's avatar akwizgran
Browse files

BadPaddingExceptions should be rethrown as RuntimeExceptions.

parent 11cf84de
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,7 @@ implements ConnectionEncrypter {
try {
out.write(frameCipher.doFinal(mac));
} catch(BadPaddingException badCipher) {
throw new IOException(badCipher);
throw new RuntimeException(badCipher);
} catch(IllegalBlockSizeException badCipher) {
throw new RuntimeException(badCipher);
}
......@@ -85,7 +85,7 @@ implements ConnectionEncrypter {
try {
out.write(ivCipher.doFinal(iv));
} catch(BadPaddingException badCipher) {
throw new IOException(badCipher);
throw new RuntimeException(badCipher);
} catch(IllegalBlockSizeException badCipher) {
throw new RuntimeException(badCipher);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment