From 53327f7467343588549d8f38b66012b5e868c9db Mon Sep 17 00:00:00 2001 From: Gibheer Date: Tue, 17 Feb 2015 21:43:21 +0100 Subject: add pem support to public key This adds pem support to public keys which can now be handled the same way as private keys. --- types.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'types.go') 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) } -- cgit v1.2.3-70-g09d2