| 1 | // Code generated by 'yaegi extract crypto/ed25519'. DO NOT EDIT. |
| 2 | |
| 3 | //go:build go1.22 |
| 4 | // +build go1.22 |
| 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 | "VerifyWithOptions": reflect.ValueOf(ed25519.VerifyWithOptions), |
| 27 | |
| 28 | // type definitions |
| 29 | "Options": reflect.ValueOf((*ed25519.Options)(nil)), |
| 30 | "PrivateKey": reflect.ValueOf((*ed25519.PrivateKey)(nil)), |
| 31 | "PublicKey": reflect.ValueOf((*ed25519.PublicKey)(nil)), |
| 32 | } |
| 33 | } |