aboutsummaryrefslogtreecommitdiff
path: root/crypto.go
diff options
context:
space:
mode:
Diffstat (limited to 'crypto.go')
-rw-r--r--crypto.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto.go b/crypto.go
index 39c48fe..d0ea41e 100644
--- a/crypto.go
+++ b/crypto.go
@@ -14,6 +14,7 @@ import (
"errors"
"io"
"io/ioutil"
+ "log"
"os"
)
@@ -72,6 +73,7 @@ func LoadKey(r io.Reader) (crypto.PrivateKey, error) {
case pemEC:
return x509.ParseECPrivateKey(block.Bytes)
default:
+ log.Println("LoadKey")
return nil, ErrKeyType
}
}
@@ -128,6 +130,7 @@ func NewKey(size int) (crypto.PrivateKey, error) {
case 0:
return rsa.GenerateKey(rand.Reader, 2048)
default:
+ log.Println("NewKey")
return nil, ErrKeySize
}
}