MCPcopy Index your code
hub / github.com/f0ng/autoDecoder / SWAP

Method SWAP

src/com/autoDecoder/util/SM4.java:36–40  ·  view source on GitHub ↗
(long[] sk, int i)

Source from the content-addressed store, hash-verified

34 }
35
36 private void SWAP(long[] sk, int i) {
37 long t = sk[i];
38 sk[i] = sk[(31 - i)];
39 sk[(31 - i)] = t;
40 }
41
42 public static final byte[] SboxTable = {(byte) 0xd6, (byte) 0x90, (byte) 0xe9, (byte) 0xfe,
43 (byte) 0xcc, (byte) 0xe1, 0x3d, (byte) 0xb7, 0x16, (byte) 0xb6,

Callers 1

sm4_setkey_decMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected