github.com/goplus/gossa@v0.3.25/pkg/crypto/aes/go118_export.go (about)

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //go:build go1.18
     4  // +build go1.18
     5  
     6  package aes
     7  
     8  import (
     9  	q "crypto/aes"
    10  
    11  	"go/constant"
    12  	"reflect"
    13  
    14  	"github.com/goplus/gossa"
    15  )
    16  
    17  func init() {
    18  	gossa.RegisterPackage(&gossa.Package{
    19  		Name: "aes",
    20  		Path: "crypto/aes",
    21  		Deps: map[string]string{
    22  			"crypto/cipher":          "cipher",
    23  			"crypto/internal/subtle": "subtle",
    24  			"crypto/subtle":          "subtle",
    25  			"encoding/binary":        "binary",
    26  			"errors":                 "errors",
    27  			"internal/cpu":           "cpu",
    28  			"strconv":                "strconv",
    29  		},
    30  		Interfaces: map[string]reflect.Type{},
    31  		NamedTypes: map[string]gossa.NamedType{
    32  			"KeySizeError": {reflect.TypeOf((*q.KeySizeError)(nil)).Elem(), "Error", ""},
    33  		},
    34  		AliasTypes: map[string]reflect.Type{},
    35  		Vars:       map[string]reflect.Value{},
    36  		Funcs: map[string]reflect.Value{
    37  			"NewCipher": reflect.ValueOf(q.NewCipher),
    38  		},
    39  		TypedConsts: map[string]gossa.TypedConst{},
    40  		UntypedConsts: map[string]gossa.UntypedConst{
    41  			"BlockSize": {"untyped int", constant.MakeInt64(int64(q.BlockSize))},
    42  		},
    43  	})
    44  }