runtime: testing runtime

This commit is contained in:
Li Jie
2025-02-14 17:18:13 +08:00
parent 66909b3000
commit 5329f28580
83 changed files with 3376 additions and 2061 deletions

View File

@@ -1,6 +1,5 @@
package hmac
// llgo:skipall
import (
"crypto/sha256"
"crypto/subtle"
@@ -11,6 +10,9 @@ import (
"github.com/goplus/llgo/runtime/internal/clite/openssl"
)
// llgo:skipall
type _hmac struct{}
type eface struct {
_type unsafe.Pointer
funcPtr *unsafe.Pointer

View File

@@ -16,7 +16,6 @@
package md5
// llgo:skipall
import (
"crypto"
"hash"
@@ -26,6 +25,9 @@ import (
"github.com/goplus/llgo/runtime/internal/clite/openssl"
)
// llgo:skipall
type _md5 struct{}
func init() {
crypto.RegisterHash(crypto.MD5, New)
}

View File

@@ -16,7 +16,6 @@
package rand
// llgo:skipall
import (
"io"
@@ -25,6 +24,9 @@ import (
"github.com/qiniu/x/errors"
)
// llgo:skipall
type _rand struct{}
type rndReader struct{}
func (rndReader) Read(p []byte) (n int, err error) {

View File

@@ -16,7 +16,6 @@
package sha1
// llgo:skipall
import (
"crypto"
"hash"
@@ -26,6 +25,9 @@ import (
"github.com/goplus/llgo/runtime/internal/clite/openssl"
)
// llgo:skipall
type _sha1 struct{}
func init() {
crypto.RegisterHash(crypto.SHA1, New)
}

View File

@@ -16,7 +16,6 @@
package sha256
// llgo:skipall
import (
"crypto"
"hash"
@@ -26,6 +25,9 @@ import (
"github.com/goplus/llgo/runtime/internal/clite/openssl"
)
// llgo:skipall
type _sha256 struct{}
func init() {
crypto.RegisterHash(crypto.SHA224, New224)
crypto.RegisterHash(crypto.SHA256, New)

View File

@@ -16,7 +16,6 @@
package sha512
// llgo:skipall
import (
"crypto"
"hash"
@@ -26,6 +25,9 @@ import (
"github.com/goplus/llgo/runtime/internal/clite/openssl"
)
// llgo:skipall
type _sha512 struct{}
func init() {
crypto.RegisterHash(crypto.SHA384, New384)
crypto.RegisterHash(crypto.SHA512, New)