Skip to content

Commit

Permalink
adjust nonce to 16 bytes for compatibility with aes block size
Browse files Browse the repository at this point in the history
  • Loading branch information
xtaci committed Dec 9, 2024
1 parent 38568b2 commit 9127f8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hopper.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ import (
)

const (
// nonceSize defines the size of the additional nonce (8 bytes) added to each UDP packet.
nonceSize = 8
// nonceSize defines the size of the additional nonce (16 bytes) added to each UDP packet.
nonceSize = 16

// mtuLimit specifies the maximum transmission unit (MTU) size for a packet.
mtuLimit = 1500
Expand Down

0 comments on commit 9127f8b

Please sign in to comment.