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

Method join

security/src/main/java/pro/tools/security/sm/SM2.java:82–94  ·  view source on GitHub ↗

字节数组拼接 @param params @return

(byte[]... params)

Source from the content-addressed store, hash-verified

80 * @return
81 */
82 private static byte[] join(byte[]... params) {
83 ByteArrayOutputStream baos = new ByteArrayOutputStream();
84 byte[] res = null;
85 try {
86 for (int i = 0; i < params.length; i++) {
87 baos.write(params[i]);
88 }
89 res = baos.toByteArray();
90 } catch (IOException e) {
91 e.printStackTrace();
92 }
93 return res;
94 }
95
96 /**
97 * sm3摘要

Callers 5

sm3hashMethod · 0.95
signMethod · 0.95
verifyMethod · 0.95
keyExchange_2Method · 0.45
keyExchange_3Method · 0.45

Calls 2

writeMethod · 0.80
toByteArrayMethod · 0.80

Tested by

no test coverage detected