MCPcopy Create free account
hub / github.com/f0ng/autoDecoder / PUT_ULONG_BE

Method PUT_ULONG_BE

src/com/autoDecoder/util/SM4.java:21–26  ·  view source on GitHub ↗
(long n, byte[] b, int i)

Source from the content-addressed store, hash-verified

19 }
20
21 private void PUT_ULONG_BE(long n, byte[] b, int i) {
22 b[i] = (byte) (int) (0xFF & n >> 24);
23 b[i + 1] = (byte) (int) (0xFF & n >> 16);
24 b[i + 2] = (byte) (int) (0xFF & n >> 8);
25 b[i + 3] = (byte) (int) (0xFF & n);
26 }
27
28 private long SHL(long x, int n) {
29 return (x & 0xFFFFFFFF) << n;

Callers 3

sm4LtMethod · 0.95
sm4CalciRKMethod · 0.95
sm4_one_roundMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected