aboutsummaryrefslogtreecommitdiff
path: root/rsa.go
diff options
context:
space:
mode:
Diffstat (limited to 'rsa.go')
-rw-r--r--rsa.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/rsa.go b/rsa.go
index 9a4f298..1661163 100644
--- a/rsa.go
+++ b/rsa.go
@@ -56,6 +56,10 @@ func (pr RsaPrivateKey) MarshalPem() (marshalledPemBlock, error) {
return pem.EncodeToMemory(&pem_block), nil
}
+func LoadPublicKeyRsa(raw []byte) (*RsaPublicKey, error) {
+ return nil, errors.New("not implemented yet!")
+}
+
func (pu *RsaPublicKey) MarshalPem() (marshalledPemBlock, error) {
asn1, err := x509.MarshalPKIXPublicKey(pu.public_key)
if err != nil { return nil, err }