Migrate package imports from next.orly.dev to new orly domain structure; add new varint and binary encoders with comprehensive tests; enhance existing tag and envelope implementations with additional methods, validations, and test coverage; introduce shared test.sh script for streamlined testing across modules.

This commit is contained in:
2025-08-31 16:52:24 +01:00
parent 94383f29e9
commit 91d95c6f1a
202 changed files with 12803 additions and 420 deletions

View File

@@ -112,7 +112,7 @@ This will automatically select the fastest method for the architecture on which
it will be executed.
```go
import "github.com/minio/sha256-simd"
import "crypto.orly/sha256"
func main() {
...

View File

@@ -412,10 +412,10 @@ func (d *digest) MarshalBinary() ([]byte, error) {
func (d *digest) UnmarshalBinary(b []byte) error {
if len(b) < len(magic256) || string(b[:len(magic256)]) != magic256 {
return errors.New("crypto/sha256: invalid hash state identifier")
return errors.New("crypto.orly/sha256: invalid hash state identifier")
}
if len(b) != marshaledSize {
return errors.New("crypto/sha256: invalid hash state size")
return errors.New("crypto.orly/sha256: invalid hash state size")
}
b = b[len(magic256):]
b, d.h[0] = consumeUint32(b)

View File

@@ -59,7 +59,7 @@ import (
"testing"
"lol.mleku.dev/chk"
"next.orly.dev/pkg/utils"
"utils.orly"
)
type sha256Test struct {