MCPcopy Index your code
hub / github.com/CDSecLab/MJXT / Xor

Method Xor

src/main/java/utils/tool.java:35–47  ·  view source on GitHub ↗
(byte[] x, byte[] y)

Source from the content-addressed store, hash-verified

33
34
35 public static byte[] Xor(byte[] x, byte[] y) {
36 int min =0;
37 if(x.length>y.length){
38 min = y.length;
39 }else{
40 min = x.length;
41 }
42 byte[] temp = new byte[min];
43 for (int i = 0; i < min; i++) {
44 temp[i] = (byte) (x[i] ^ y[i]);
45 }
46 return temp;
47 }
48}

Callers 15

mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
constructMethod · 0.80
constructMethod · 0.80
constructMethod · 0.80

Calls

no outgoing calls

Tested by 9

mainMethod · 0.64
mainMethod · 0.64
mainMethod · 0.64
mainMethod · 0.64
mainMethod · 0.64
mainMethod · 0.64
mainMethod · 0.64
mainMethod · 0.64
mainMethod · 0.64