MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / of

Method of

src/main/java/core/packetproxy/quic/value/key/Key.java:51–56  ·  view source on GitHub ↗
(byte[] secret)

Source from the content-addressed store, hash-verified

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;

Callers 15

ofMethod · 0.95
ofMethod · 0.95
ofMethod · 0.95
ofMethod · 0.95
runMethod · 0.45
getSummaryMethod · 0.45
parseMethod · 0.45
generateRandomMethod · 0.45
supportedTypesMethod · 0.45

Calls 1

hkdfExpandLabelMethod · 0.95