提交 d929347d authored 作者: Thomas Mueller's avatar Thomas Mueller

Make the encryption classes usable by tools.

上级 794f82e4
...@@ -29,10 +29,6 @@ public class AES implements BlockCipher { ...@@ -29,10 +29,6 @@ public class AES implements BlockCipher {
private int[] encKey = new int[44]; private int[] encKey = new int[44];
private int[] decKey = new int[44]; private int[] decKey = new int[44];
AES() {
// do nothing
}
private static int rot8(int x) { private static int rot8(int x) {
return (x >>> 8) | (x << 24); return (x >>> 8) | (x << 24);
} }
......
...@@ -21,10 +21,6 @@ public class XTEA implements BlockCipher { ...@@ -21,10 +21,6 @@ public class XTEA implements BlockCipher {
private int k0, k1, k2, k3, k4, k5, k6, k7, k8, k9, k10, k11, k12, k13, k14, k15; private int k0, k1, k2, k3, k4, k5, k6, k7, k8, k9, k10, k11, k12, k13, k14, k15;
private int k16, k17, k18, k19, k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k30, k31; private int k16, k17, k18, k19, k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k30, k31;
XTEA() {
// do nothing
}
public void setKey(byte[] b) { public void setKey(byte[] b) {
int[] key = new int[4]; int[] key = new int[4];
for (int i = 0; i < 16;) { for (int i = 0; i < 16;) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论