github.com/goplus/igop@v0.25.0/pkg/crypto/dsa/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 dsa
     7  
     8  import (
     9  	q "crypto/dsa"
    10  
    11  	"go/constant"
    12  	"reflect"
    13  
    14  	"github.com/goplus/igop"
    15  )
    16  
    17  func init() {
    18  	igop.RegisterPackage(&igop.Package{
    19  		Name: "dsa",
    20  		Path: "crypto/dsa",
    21  		Deps: map[string]string{
    22  			"crypto/internal/randutil": "randutil",
    23  			"errors":                   "errors",
    24  			"io":                       "io",
    25  			"math/big":                 "big",
    26  		},
    27  		Interfaces: map[string]reflect.Type{},
    28  		NamedTypes: map[string]reflect.Type{
    29  			"ParameterSizes": reflect.TypeOf((*q.ParameterSizes)(nil)).Elem(),
    30  			"Parameters":     reflect.TypeOf((*q.Parameters)(nil)).Elem(),
    31  			"PrivateKey":     reflect.TypeOf((*q.PrivateKey)(nil)).Elem(),
    32  			"PublicKey":      reflect.TypeOf((*q.PublicKey)(nil)).Elem(),
    33  		},
    34  		AliasTypes: map[string]reflect.Type{},
    35  		Vars: map[string]reflect.Value{
    36  			"ErrInvalidPublicKey": reflect.ValueOf(&q.ErrInvalidPublicKey),
    37  		},
    38  		Funcs: map[string]reflect.Value{
    39  			"GenerateKey":        reflect.ValueOf(q.GenerateKey),
    40  			"GenerateParameters": reflect.ValueOf(q.GenerateParameters),
    41  			"Sign":               reflect.ValueOf(q.Sign),
    42  			"Verify":             reflect.ValueOf(q.Verify),
    43  		},
    44  		TypedConsts: map[string]igop.TypedConst{
    45  			"L1024N160": {reflect.TypeOf(q.L1024N160), constant.MakeInt64(int64(q.L1024N160))},
    46  			"L2048N224": {reflect.TypeOf(q.L2048N224), constant.MakeInt64(int64(q.L2048N224))},
    47  			"L2048N256": {reflect.TypeOf(q.L2048N256), constant.MakeInt64(int64(q.L2048N256))},
    48  			"L3072N256": {reflect.TypeOf(q.L3072N256), constant.MakeInt64(int64(q.L3072N256))},
    49  		},
    50  		UntypedConsts: map[string]igop.UntypedConst{},
    51  	})
    52  }