flaky test: TestToFromBytes: integergroup_test.go:132: Failed to reconstruct element from bytes: Length of bytes supplied is not sufficient for the group element creation: Length: 128, bytes: 127

Hi! This package appears to have a flaky test, or at least it doesn't show up always, and only seen on i386:

https://ci.debian.net/packages/g/golang-debian-vasudev-gospake2/testing/i386/66936246/

This is holding up testing migration for golang-go.crypto right now, but I'm scheduling another debci run of this, which hopefully will make it go away.

/Simon

 86s === RUN   TestToFromBytes
 86s     integergroup_test.go:132: Failed to reconstruct element from bytes: Length of bytes supplied is not sufficient for the group element creation
 86s         Length: 128, bytes: 127
 86s         
 86s --- FAIL: TestToFromBytes (0.00s)
 86s panic: interface conversion: groups.Element is nil, not integergroup.IntegerElement [recovered]
 86s 	panic: interface conversion: groups.Element is nil, not integergroup.IntegerElement
 86s 
 86s goroutine 22 [running]:
 86s testing.tRunner.func1.2({0x81a9280, 0x8894738})
 86s 	/usr/lib/go-1.24/src/testing/testing.go:1734 +0x283
 86s testing.tRunner.func1()
 86s 	/usr/lib/go-1.24/src/testing/testing.go:1737 +0x415
 86s panic({0x81a9280, 0x8894738})
 86s 	/usr/lib/go-1.24/src/runtime/panic.go:792 +0x103
 86s salsa.debian.org/vasudev/gospake2/integergroup.TestToFromBytes(0x88a4a28)
 86s 	/tmp/autopkgtest-lxc.zsh2tw5l/downtmp/autopkgtest_tmp/_build/src/salsa.debian.org/vasudev/gospake2/integergroup/integergroup_test.go:135 +0x40c
 86s testing.tRunner(0x88a4a28, 0x81d25e0)
 86s 	/usr/lib/go-1.24/src/testing/testing.go:1792 +0x119
 86s created by testing.(*T).Run in goroutine 1
 86s 	/usr/lib/go-1.24/src/testing/testing.go:1851 +0x468
 86s FAIL	salsa.debian.org/vasudev/gospake2/integergroup	0.542s
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information