diff options
Diffstat (limited to 'key/key.go')
-rw-r--r-- | key/key.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -67,7 +67,7 @@ func Generate(der Deriver) (*Pub, *Sec, error) { return pub, sec, nil } -func unmarshal(data []byte, v interface{}) error { +func Unmarshal(data []byte, v interface{}) error { buf := bytes.NewReader(data) if err := binary.Read(buf, binary.BigEndian, v); err != nil { return err @@ -75,7 +75,7 @@ func unmarshal(data []byte, v interface{}) error { return nil } -func marshal(v interface{}) ([]byte, error) { +func Marshal(v interface{}) ([]byte, error) { buf := new(bytes.Buffer) if err := binary.Write(buf, binary.BigEndian, v); err != nil { return nil, err |