0
0
Fork 0

make raw private key public

This commit is contained in:
Gibheer 2015-03-15 20:06:09 +01:00
parent 2fa7332719
commit 4157d8e07a
3 changed files with 3 additions and 3 deletions

View File

@ -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
}

2
rsa.go
View File

@ -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
}

View File

@ -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