github.com/goplus/igop@v0.25.0/pkg/crypto/cipher/go119_export.go (about)

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