diff options
author | Gibheer <gibheer@gmail.com> | 2015-03-15 20:06:09 +0100 |
---|---|---|
committer | Gibheer <gibheer@gmail.com> | 2015-03-15 20:06:09 +0100 |
commit | 4157d8e07abed02ff4b3dd5575e70252331b2d67 (patch) | |
tree | f06a47c52c2573b5f22722de281f80d42761933b | |
parent | 2fa7332719bafb33ad6cb212f9c567b23ed4082d (diff) |
make raw private key public
-rw-r--r-- | ecdsa.go | 2 | ||||
-rw-r--r-- | rsa.go | 2 | ||||
-rw-r--r-- | types.go | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -63,7 +63,7 @@ func (pr EcdsaPrivateKey) Sign(message []byte, hash crypto.Hash) ([]byte, error) } // get the private key -func (pr EcdsaPrivateKey) privateKey() crypto.PrivateKey { +func (pr EcdsaPrivateKey) PrivateKey() crypto.PrivateKey { return pr.private_key } @@ -46,7 +46,7 @@ func (pr RsaPrivateKey) Sign(message []byte, hash crypto.Hash) ([]byte, error) { } // get the private key -func (pr RsaPrivateKey) privateKey() crypto.PrivateKey { +func (pr RsaPrivateKey) PrivateKey() crypto.PrivateKey { return pr.private_key } @@ -20,7 +20,7 @@ type ( Sign(message []byte, hash crypto.Hash) ([]byte, error) // return the private key structure - privateKey() crypto.PrivateKey + PrivateKey() crypto.PrivateKey } // interface for any public key |