aboutsummaryrefslogtreecommitdiff
path: root/types.go
diff options
context:
space:
mode:
authorGibheer <gibheer@gmail.com>2015-02-17 21:43:21 +0100
committerGibheer <gibheer@gmail.com>2015-02-17 21:43:21 +0100
commit53327f7467343588549d8f38b66012b5e868c9db (patch)
tree7e9718d99216ddc60add2430ef26a4372fb5d19f /types.go
parent930035ce91cc9e6e66874811167f3c3ff58b55b4 (diff)
add pem support to public key
This adds pem support to public keys which can now be handled the same way as private keys.
Diffstat (limited to 'types.go')
-rw-r--r--types.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/types.go b/types.go
index e9326ee..b05bd40 100644
--- a/types.go
+++ b/types.go
@@ -1,4 +1,4 @@
-package pkilib
+package pki
import (
"crypto"
@@ -7,6 +7,8 @@ import (
// this file holds all the interfaces used in the program until it can be split
// properly
+const PemLabelPublic = "PUBLIC KEY"
+
type (
// interface for any private key
PrivateKey interface {
@@ -21,6 +23,7 @@ type (
// interface for any public key
PublicKey interface {
+ Pemmer
// use the public key to verify a message against a signature
Verify(message []byte, signature []byte) (bool, error)
}