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. --- rsa.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'rsa.go') diff --git a/rsa.go b/rsa.go index 48135b2..69e0a16 100644 --- a/rsa.go +++ b/rsa.go @@ -1,4 +1,4 @@ -package pkilib +package pki import ( "crypto" @@ -49,6 +49,10 @@ func (pr RsaPrivateKey) MarshalPem() (marshalledPemBlock, error) { return nil, errors.New("not implemented yet!") } +func (pu *RsaPublicKey) MarshalPem() (marshalledPemBlock, error) { + return nil, errors.New("not implemented yet!") +} + func (pu *RsaPublicKey) Verify(message []byte, signature []byte) (bool, error) { return false, errors.New("not implemented yet!") } -- cgit v1.2.3-70-g09d2