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

Method encryptPayload

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

Source from the content-addressed store, hash-verified

82 }
83
84 public byte[] encryptPayload(byte[] packetNumber, byte[] payload, byte[] associatedData) throws Exception {
85 return aesGCM(Cipher.ENCRYPT_MODE, packetNumber, payload, associatedData);
86 }
87
88 private byte[] getNonce(byte[] packetNumber) {
89 byte[] nonce = new byte[12];

Callers 2

getBytesMethod · 0.80
getBytesMethod · 0.80

Calls 1

aesGCMMethod · 0.95

Tested by

no test coverage detected