github.com/goplus/igop@v0.17.0/pkg/crypto/ed25519/go120_export.go (about) 1 // export by github.com/goplus/igop/cmd/qexp 2 3 //go:build go1.20 4 // +build go1.20 5 6 package ed25519 7 8 import ( 9 q "crypto/ed25519" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/igop" 15 ) 16 17 func init() { 18 igop.RegisterPackage(&igop.Package{ 19 Name: "ed25519", 20 Path: "crypto/ed25519", 21 Deps: map[string]string{ 22 "bytes": "bytes", 23 "crypto": "crypto", 24 "crypto/internal/edwards25519": "edwards25519", 25 "crypto/rand": "rand", 26 "crypto/sha512": "sha512", 27 "errors": "errors", 28 "io": "io", 29 "strconv": "strconv", 30 }, 31 Interfaces: map[string]reflect.Type{}, 32 NamedTypes: map[string]reflect.Type{ 33 "Options": reflect.TypeOf((*q.Options)(nil)).Elem(), 34 "PrivateKey": reflect.TypeOf((*q.PrivateKey)(nil)).Elem(), 35 "PublicKey": reflect.TypeOf((*q.PublicKey)(nil)).Elem(), 36 }, 37 AliasTypes: map[string]reflect.Type{}, 38 Vars: map[string]reflect.Value{}, 39 Funcs: map[string]reflect.Value{ 40 "GenerateKey": reflect.ValueOf(q.GenerateKey), 41 "NewKeyFromSeed": reflect.ValueOf(q.NewKeyFromSeed), 42 "Sign": reflect.ValueOf(q.Sign), 43 "Verify": reflect.ValueOf(q.Verify), 44 "VerifyWithOptions": reflect.ValueOf(q.VerifyWithOptions), 45 }, 46 TypedConsts: map[string]igop.TypedConst{}, 47 UntypedConsts: map[string]igop.UntypedConst{ 48 "PrivateKeySize": {"untyped int", constant.MakeInt64(int64(q.PrivateKeySize))}, 49 "PublicKeySize": {"untyped int", constant.MakeInt64(int64(q.PublicKeySize))}, 50 "SeedSize": {"untyped int", constant.MakeInt64(int64(q.SeedSize))}, 51 "SignatureSize": {"untyped int", constant.MakeInt64(int64(q.SignatureSize))}, 52 }, 53 }) 54 }