github.com/goplus/gossa@v0.3.25/pkg/crypto/cipher/go115_export.go (about)

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //+build go1.15,!go1.16
     4  
     5  package cipher
     6  
     7  import (
     8  	q "crypto/cipher"
     9  
    10  	"reflect"
    11  
    12  	"github.com/goplus/gossa"
    13  )
    14  
    15  func init() {
    16  	gossa.RegisterPackage(&gossa.Package{
    17  		Name: "cipher",
    18  		Path: "crypto/cipher",
    19  		Deps: map[string]string{
    20  			"crypto/internal/subtle": "subtle",
    21  			"crypto/subtle":          "subtle",
    22  			"encoding/binary":        "binary",
    23  			"errors":                 "errors",
    24  			"io":                     "io",
    25  		},
    26  		Interfaces: map[string]reflect.Type{
    27  			"AEAD":      reflect.TypeOf((*q.AEAD)(nil)).Elem(),
    28  			"Block":     reflect.TypeOf((*q.Block)(nil)).Elem(),
    29  			"BlockMode": reflect.TypeOf((*q.BlockMode)(nil)).Elem(),
    30  			"Stream":    reflect.TypeOf((*q.Stream)(nil)).Elem(),
    31  		},
    32  		NamedTypes: map[string]gossa.NamedType{
    33  			"StreamReader": {reflect.TypeOf((*q.StreamReader)(nil)).Elem(), "Read", ""},
    34  			"StreamWriter": {reflect.TypeOf((*q.StreamWriter)(nil)).Elem(), "Close,Write", ""},
    35  		},
    36  		AliasTypes: map[string]reflect.Type{},
    37  		Vars:       map[string]reflect.Value{},
    38  		Funcs: map[string]reflect.Value{
    39  			"NewCBCDecrypter":     reflect.ValueOf(q.NewCBCDecrypter),
    40  			"NewCBCEncrypter":     reflect.ValueOf(q.NewCBCEncrypter),
    41  			"NewCFBDecrypter":     reflect.ValueOf(q.NewCFBDecrypter),
    42  			"NewCFBEncrypter":     reflect.ValueOf(q.NewCFBEncrypter),
    43  			"NewCTR":              reflect.ValueOf(q.NewCTR),
    44  			"NewGCM":              reflect.ValueOf(q.NewGCM),
    45  			"NewGCMWithNonceSize": reflect.ValueOf(q.NewGCMWithNonceSize),
    46  			"NewGCMWithTagSize":   reflect.ValueOf(q.NewGCMWithTagSize),
    47  			"NewOFB":              reflect.ValueOf(q.NewOFB),
    48  		},
    49  		TypedConsts:   map[string]gossa.TypedConst{},
    50  		UntypedConsts: map[string]gossa.UntypedConst{},
    51  	})
    52  }