MCPcopy Index your code
hub / github.com/SeanDragon/protools / toByteArray

Method toByteArray

security/src/main/java/pro/tools/security/sm/SM3.java:167–179  ·  view source on GitHub ↗
(int a, int b, int c, int d, int e, int f,
                                      int g, int h)

Source from the content-addressed store, hash-verified

165 }
166
167 private static byte[] toByteArray(int a, int b, int c, int d, int e, int f,
168 int g, int h) throws IOException {
169 ByteArrayOutputStream baos = new ByteArrayOutputStream(32);
170 baos.write(toByteArray(a));
171 baos.write(toByteArray(b));
172 baos.write(toByteArray(c));
173 baos.write(toByteArray(d));
174 baos.write(toByteArray(e));
175 baos.write(toByteArray(f));
176 baos.write(toByteArray(g));
177 baos.write(toByteArray(h));
178 return baos.toByteArray();
179 }
180
181 static byte[] toByteArray(int i) {
182 byte[] byteArray = new byte[4];

Callers 15

CFMethod · 0.95
KDFMethod · 0.95
paddingMethod · 0.80
hashMethod · 0.80
joinMethod · 0.80
ZAMethod · 0.80
encryptMethod · 0.80
decryptMethod · 0.80
importPublicKeyMethod · 0.80
keyExchange_2Method · 0.80
keyExchange_3Method · 0.80
keyExchange_4Method · 0.80

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected