Proposal Details
cryptobyte.String has ReadUintNLengthPrefixed for N 8, 16, and 24, but not 32, despite Builder having AddUint32LengthPrefixed.
ReadUint32LengthPrefixed would be useful for parsing SSH protocol messages, which use uint32-prefixed strings.
I propose adding:
func (s *String) ReadUint32LengthPrefixed(out *String) bool
cc @rolandshoemaker @FiloSottile
Proposal Details
cryptobyte.StringhasReadUintNLengthPrefixedforN8, 16, and 24, but not 32, despiteBuilderhavingAddUint32LengthPrefixed.ReadUint32LengthPrefixedwould be useful for parsing SSH protocol messages, which use uint32-prefixed strings.I propose adding:
cc @rolandshoemaker @FiloSottile