(byte[] key, byte[] data)
| 3036 | } |
| 3037 | |
| 3038 | private static byte[] extendedHmacSha256(byte[] key, byte[] data) |
| 3039 | { |
| 3040 | try { |
| 3041 | Mac mac = Mac.getInstance("HmacSHA256"); |
| 3042 | mac.init(new SecretKeySpec(key, "HmacSHA256")); |
| 3043 | return mac.doFinal(data); |
| 3044 | } catch (Exception e) { |
| 3045 | throw new RuntimeException(e); |
| 3046 | } |
| 3047 | } |
| 3048 | |
| 3049 | private static byte[] extendedBytesConcat(byte[]... arrays) |
| 3050 | { |
no test coverage detected