github.com/goplus/gossa@v0.3.25/pkg/crypto/des/go114_export.go (about)

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