github.com/goplus/gossa@v0.3.25/pkg/crypto/rc4/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 rc4
     7  
     8  import (
     9  	q "crypto/rc4"
    10  
    11  	"reflect"
    12  
    13  	"github.com/goplus/gossa"
    14  )
    15  
    16  func init() {
    17  	gossa.RegisterPackage(&gossa.Package{
    18  		Name: "rc4",
    19  		Path: "crypto/rc4",
    20  		Deps: map[string]string{
    21  			"crypto/internal/subtle": "subtle",
    22  			"strconv":                "strconv",
    23  		},
    24  		Interfaces: map[string]reflect.Type{},
    25  		NamedTypes: map[string]gossa.NamedType{
    26  			"Cipher":       {reflect.TypeOf((*q.Cipher)(nil)).Elem(), "", "Reset,XORKeyStream"},
    27  			"KeySizeError": {reflect.TypeOf((*q.KeySizeError)(nil)).Elem(), "Error", ""},
    28  		},
    29  		AliasTypes: map[string]reflect.Type{},
    30  		Vars:       map[string]reflect.Value{},
    31  		Funcs: map[string]reflect.Value{
    32  			"NewCipher": reflect.ValueOf(q.NewCipher),
    33  		},
    34  		TypedConsts:   map[string]gossa.TypedConst{},
    35  		UntypedConsts: map[string]gossa.UntypedConst{},
    36  	})
    37  }