fix: change HeaderCipherNonceSize to be reported in wrong S1-S4

This commit is contained in:
Yaroslav Gurov authored and Yaroslav Gurov committed 2026-07-31 08:53:19 +02:00
1 parent ce7cf1034d
commit 7860d60a52
1 file changed
+1 -1
+1 -1
View File
@@ -823,7 +823,7 @@ func (d *ipcSetDevice) mergeWithDevice(device *Device) error {
paddings := []uint32{d.paddings.init, d.paddings.response, d.paddings.cookie, d.paddings.transport}
for i, padding := range paddings {
if padding < HeaderCipherNonceSize {
return fmt.Errorf("S%d must be more then 8 to use headerProtection", i)
return fmt.Errorf("S%d must be more then %d to use headerProtection", i, HeaderCipherNonceSize)
}
}
}