aboutsummaryrefslogtreecommitdiff
path: root/key/key.go
diff options
context:
space:
mode:
Diffstat (limited to 'key/key.go')
-rw-r--r--key/key.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/key/key.go b/key/key.go
index 413ac23..57bf301 100644
--- a/key/key.go
+++ b/key/key.go
@@ -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