golang.org/x/crypto/ssh.streamPacketCipher.prefix (field)
19 uses
golang.org/x/crypto/ssh (current package)
cipher.go#L144: prefix [prefixLen]byte
cipher.go#L153: if _, err := io.ReadFull(r, s.prefix[:]); err != nil {
cipher.go#L159: copy(encryptedPaddingLength[:], s.prefix[4:5])
cipher.go#L160: s.cipher.XORKeyStream(s.prefix[4:5], s.prefix[4:5])
cipher.go#L162: s.cipher.XORKeyStream(s.prefix[:], s.prefix[:])
cipher.go#L165: length := binary.BigEndian.Uint32(s.prefix[0:4])
cipher.go#L166: paddingLength := uint32(s.prefix[4])
cipher.go#L174: s.mac.Write(s.prefix[:4])
cipher.go#L177: s.mac.Write(s.prefix[:])
cipher.go#L241: binary.BigEndian.PutUint32(s.prefix[:], uint32(length))
cipher.go#L242: s.prefix[4] = byte(paddingLength)
cipher.go#L256: s.cipher.XORKeyStream(s.prefix[4:5], s.prefix[4:5])
cipher.go#L259: s.mac.Write(s.prefix[:])
cipher.go#L271: s.cipher.XORKeyStream(s.prefix[:], s.prefix[:])
cipher.go#L283: if _, err := w.Write(s.prefix[:]); err != nil {
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |