Files
moxa/stdlib/go1_21_crypto_sha256.go
Marc Vertes 0a5b16cad6 feat: support go1.22
* feat: support go1.22

* Temporary fix for consistency tests due to language change in for loops

* review: clean old files

---------

Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2024-03-05 17:56:04 +01:00

27 lines
752 B
Go

// Code generated by 'yaegi extract crypto/sha256'. DO NOT EDIT.
//go:build go1.21 && !go1.22
// +build go1.21,!go1.22
package stdlib
import (
"crypto/sha256"
"go/constant"
"go/token"
"reflect"
)
func init() {
Symbols["crypto/sha256/sha256"] = map[string]reflect.Value{
// function, constant and variable definitions
"BlockSize": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)),
"New": reflect.ValueOf(sha256.New),
"New224": reflect.ValueOf(sha256.New224),
"Size": reflect.ValueOf(constant.MakeFromLiteral("32", token.INT, 0)),
"Size224": reflect.ValueOf(constant.MakeFromLiteral("28", token.INT, 0)),
"Sum224": reflect.ValueOf(sha256.Sum224),
"Sum256": reflect.ValueOf(sha256.Sum256),
}
}