runtime: testing runtime
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user