Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ecc/goldilocks/point.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ func isLessThan(x, y []byte) bool {
}

// FromBytes returns a point from the input buffer.
//
// Note, previous versions of Circl accepted trailing data.
func FromBytes(in []byte) (*Point, error) {
if len(in) < fp.Size+1 {
if len(in) != fp.Size+1 {
return nil, errors.New("wrong input length")
}
err := errors.New("invalid decoding")
Expand Down
Loading