Skip to content

proposal: x/crypto/cryptobyte: add ReadUint32LengthPrefixed #64391

@AGWA

Description

@AGWA

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    ProposalProposal-CryptoProposal related to crypto packages or other security issues

    Type

    No type

    Projects

    Status

    Incoming

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions