MCPcopy Create free account
hub / github.com/SeanDragon/protools / GG

Method GG

security/src/main/java/pro/tools/security/sm/SM3.java:47–55  ·  view source on GitHub ↗
(Integer x, Integer y, Integer z, int j)

Source from the content-addressed store, hash-verified

45 }
46
47 private static Integer GG(Integer x, Integer y, Integer z, int j) {
48 if (j >= 0 && j <= 15) {
49 return x ^ y ^ z;
50 } else if (j >= 16 && j <= 63) {
51 return (x & y) | (~x & z);
52 } else {
53 throw new RuntimeException("data invalid");
54 }
55 }
56
57 private static Integer P0(Integer x) {
58 return x

Callers 1

CFMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected