This fixes problems due to storing binary symbols as interfaces{}
instead of concrete type, which confuses lookup functions to retrieve
methods etc. in reflect.
21 lines
509 B
Go
21 lines
509 B
Go
package stdlib
|
|
|
|
// Generated by 'goexports crypto/ecdsa'. Do not edit!
|
|
|
|
import (
|
|
"crypto/ecdsa"
|
|
"reflect"
|
|
)
|
|
|
|
func init() {
|
|
Value["crypto/ecdsa"] = map[string]reflect.Value{
|
|
"GenerateKey": reflect.ValueOf(ecdsa.GenerateKey),
|
|
"Sign": reflect.ValueOf(ecdsa.Sign),
|
|
"Verify": reflect.ValueOf(ecdsa.Verify),
|
|
}
|
|
Type["crypto/ecdsa"] = map[string]reflect.Type{
|
|
"PrivateKey": reflect.TypeOf((*ecdsa.PrivateKey)(nil)).Elem(),
|
|
"PublicKey": reflect.TypeOf((*ecdsa.PublicKey)(nil)).Elem(),
|
|
}
|
|
}
|