github.com/switchupcb/yaegi@v0.10.2/stdlib/go1_16_crypto_ed25519.go (about)

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