diff options
author | Gibheer <gibheer@gmail.com> | 2015-02-17 21:43:21 +0100 |
---|---|---|
committer | Gibheer <gibheer@gmail.com> | 2015-02-17 21:43:21 +0100 |
commit | 53327f7467343588549d8f38b66012b5e868c9db (patch) | |
tree | 7e9718d99216ddc60add2430ef26a4372fb5d19f /rsa.go | |
parent | 930035ce91cc9e6e66874811167f3c3ff58b55b4 (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 'rsa.go')
-rw-r--r-- | rsa.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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!") } |