File: go1_22_crypto_ed25519.go

package info (click to toggle)
golang-github-traefik-yaegi 0.16.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 24,608 kB
  • sloc: sh: 457; makefile: 39
file content (33 lines) | stat: -rw-r--r-- 1,166 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Code generated by 'yaegi extract crypto/ed25519'. DO NOT EDIT.

//go:build go1.22
// +build go1.22

package stdlib

import (
	"crypto/ed25519"
	"go/constant"
	"go/token"
	"reflect"
)

func init() {
	Symbols["crypto/ed25519/ed25519"] = map[string]reflect.Value{
		// function, constant and variable definitions
		"GenerateKey":       reflect.ValueOf(ed25519.GenerateKey),
		"NewKeyFromSeed":    reflect.ValueOf(ed25519.NewKeyFromSeed),
		"PrivateKeySize":    reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)),
		"PublicKeySize":     reflect.ValueOf(constant.MakeFromLiteral("32", token.INT, 0)),
		"SeedSize":          reflect.ValueOf(constant.MakeFromLiteral("32", token.INT, 0)),
		"Sign":              reflect.ValueOf(ed25519.Sign),
		"SignatureSize":     reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)),
		"Verify":            reflect.ValueOf(ed25519.Verify),
		"VerifyWithOptions": reflect.ValueOf(ed25519.VerifyWithOptions),

		// type definitions
		"Options":    reflect.ValueOf((*ed25519.Options)(nil)),
		"PrivateKey": reflect.ValueOf((*ed25519.PrivateKey)(nil)),
		"PublicKey":  reflect.ValueOf((*ed25519.PublicKey)(nil)),
	}
}