github.com/switchupcb/yaegi@v0.10.2/stdlib/go1_17_crypto_ed25519.go (about) 1 // Code generated by 'yaegi extract crypto/ed25519'. DO NOT EDIT. 2 3 //go:build go1.17 4 // +build go1.17 5 6 package stdlib 7 8 import ( 9 "crypto/ed25519" 10 "go/constant" 11 "go/token" 12 "reflect" 13 ) 14 15 func init() { 16 Symbols["crypto/ed25519/ed25519"] = map[string]reflect.Value{ 17 // function, constant and variable definitions 18 "GenerateKey": reflect.ValueOf(ed25519.GenerateKey), 19 "NewKeyFromSeed": reflect.ValueOf(ed25519.NewKeyFromSeed), 20 "PrivateKeySize": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)), 21 "PublicKeySize": reflect.ValueOf(constant.MakeFromLiteral("32", token.INT, 0)), 22 "SeedSize": reflect.ValueOf(constant.MakeFromLiteral("32", token.INT, 0)), 23 "Sign": reflect.ValueOf(ed25519.Sign), 24 "SignatureSize": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)), 25 "Verify": reflect.ValueOf(ed25519.Verify), 26 27 // type definitions 28 "PrivateKey": reflect.ValueOf((*ed25519.PrivateKey)(nil)), 29 "PublicKey": reflect.ValueOf((*ed25519.PublicKey)(nil)), 30 } 31 }