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:
@@ -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() {
|
||||
...
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -59,7 +59,7 @@ import (
|
||||
"testing"
|
||||
|
||||
"lol.mleku.dev/chk"
|
||||
"next.orly.dev/pkg/utils"
|
||||
"utils.orly"
|
||||
)
|
||||
|
||||
type sha256Test struct {
|
||||
|
||||
Reference in New Issue
Block a user