| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
package stdlib |
| 7 |
|
| 8 |
import ( |
| 9 |
"crypto/sha256" |
| 10 |
"go/constant" |
| 11 |
"go/token" |
| 12 |
"reflect" |
| 13 |
) |
| 14 |
|
| 15 |
func init() { |
| 16 |
Symbols["crypto/sha256/sha256"] = map[string]reflect.Value{ |
| 17 |
|
| 18 |
"BlockSize": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)), |
| 19 |
"New": reflect.ValueOf(sha256.New), |
| 20 |
"New224": reflect.ValueOf(sha256.New224), |
| 21 |
"Size": reflect.ValueOf(constant.MakeFromLiteral("32", token.INT, 0)), |
| 22 |
"Size224": reflect.ValueOf(constant.MakeFromLiteral("28", token.INT, 0)), |
| 23 |
"Sum224": reflect.ValueOf(sha256.Sum224), |
| 24 |
"Sum256": reflect.ValueOf(sha256.Sum256), |
| 25 |
} |
| 26 |
} |