mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
Add packet padding container for packet length shaping: refactor arg names
This commit is contained in:
parent
1689279e95
commit
fbcb9bc863
3 changed files with 26 additions and 26 deletions
|
@ -19,7 +19,7 @@ type PacketPaddingContainer interface {
|
|||
// len(data_OWNERSHIP_RELINQUISHED) + padding + 2
|
||||
// @param data_OWNERSHIP_RELINQUISHED - The payload, this reference is consumed and should not be used after this call.
|
||||
// @param padding - The number of padding bytes to add to the data.
|
||||
Pack(data_OWNERSHIP_RELINQUISHED []byte, padding int) []byte
|
||||
Pack(data_OWNERSHIP_RELINQUISHED []byte, paddingLength int) []byte
|
||||
|
||||
// Unpack extracts the data and padding from the given padded data. It
|
||||
// returns the data and the number of padding bytes.
|
||||
|
@ -30,5 +30,5 @@ type PacketPaddingContainer interface {
|
|||
// Pad returns a padding packet of padding length.
|
||||
// If the padding length is less than 0, nil is returned.
|
||||
// @param padding - The number of padding bytes to add to the data.
|
||||
Pad(padding int) []byte
|
||||
Pad(paddingLength int) []byte
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue