字节数组拼接 @param params @return
(byte[]... params)
| 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摘要 |
no test coverage detected