MCPcopy Create free account
hub / github.com/Jigsaw-Code/Intra / computePaddingSize

Function computePaddingSize

Android/app/src/go/doh/padding.go:39–46  ·  view source on GitHub ↗

OPTION-LENGTH Compute the number of padding bytes needed, excluding headers. Assumes that |msgLen| is the length of a raw DNS message that contains an OPT RR with no RFC7830 padding option, and that the message is fully label-compressed.

(msgLen int, blockSize int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

TestComputePaddingSizeFunction · 0.85
getPaddingFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestComputePaddingSizeFunction · 0.68