github.com/goplus/igop@v0.25.0/pkg/crypto/aes/go117_export.go (about)

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