github.com/goplus/gossa@v0.3.25/pkg/crypto/dsa/go118_export.go (about) 1 // export by github.com/goplus/gossa/cmd/qexp 2 3 //go:build go1.18 4 // +build go1.18 5 6 package dsa 7 8 import ( 9 q "crypto/dsa" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/gossa" 15 ) 16 17 func init() { 18 gossa.RegisterPackage(&gossa.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]gossa.NamedType{ 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]gossa.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]gossa.UntypedConst{}, 51 }) 52 }