github.com/goplus/igop@v0.25.0/pkg/crypto/des/go116_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //+build go1.16,!go1.17
     4  
     5  package des
     6  
     7  import (
     8  	q "crypto/des"
     9  
    10  	"go/constant"
    11  	"reflect"
    12  
    13  	"github.com/goplus/igop"
    14  )
    15  
    16  func init() {
    17  	igop.RegisterPackage(&igop.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]reflect.Type{
    29  			"KeySizeError": reflect.TypeOf((*q.KeySizeError)(nil)).Elem(),
    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]igop.TypedConst{},
    38  		UntypedConsts: map[string]igop.UntypedConst{
    39  			"BlockSize": {"untyped int", constant.MakeInt64(int64(q.BlockSize))},
    40  		},
    41  	})
    42  }