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

Method FF

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

Source from the content-addressed store, hash-verified

33 }
34
35 private static Integer FF(Integer x, Integer y, Integer z, int j) {
36 if (j >= 0 && j <= 15) {
37 return x ^ y ^ z;
38 } else if (j >= 16 && j <= 63) {
39 return (x & y)
40 | (x & z)
41 | (y & z);
42 } else {
43 throw new RuntimeException("data invalid");
44 }
45 }
46
47 private static Integer GG(Integer x, Integer y, Integer z, int j) {
48 if (j >= 0 && j <= 15) {

Callers 1

CFMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected