(byte[] secret)
| 49 | } |
| 50 | |
| 51 | public static Key of(byte[] secret) { |
| 52 | byte[] key = hkdfExpandLabel(secret, "quic key", "", (short) 16); |
| 53 | byte[] iv = hkdfExpandLabel(secret, "quic iv", "", (short) 12); |
| 54 | byte[] hp = hkdfExpandLabel(secret, "quic hp", "", (short) 16); |
| 55 | return new Key(secret, key, iv, hp); |
| 56 | } |
| 57 | |
| 58 | byte[] secret; |
| 59 | byte[] key; |