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

Method decryptPayload

src/main/java/core/packetproxy/quic/value/key/Key.java:80–82  ·  view source on GitHub ↗
(byte[] packetNumber, byte[] encryptPayload, byte[] associatedData)

Source from the content-addressed store, hash-verified

78 }
79
80 public byte[] decryptPayload(byte[] packetNumber, byte[] encryptPayload, byte[] associatedData) throws Exception {
81 return aesGCM(Cipher.DECRYPT_MODE, packetNumber, encryptPayload, associatedData);
82 }
83
84 public byte[] encryptPayload(byte[] packetNumber, byte[] payload, byte[] associatedData) throws Exception {
85 return aesGCM(Cipher.ENCRYPT_MODE, packetNumber, payload, associatedData);

Callers 2

ShortHeaderPacketMethod · 0.80

Calls 1

aesGCMMethod · 0.95

Tested by

no test coverage detected