aboutsummaryrefslogtreecommitdiff
path: root/rsa.go
diff options
context:
space:
mode:
authorGibheer <gibheer@gmail.com>2015-02-18 22:55:29 +0100
committerGibheer <gibheer@gmail.com>2015-02-18 22:55:29 +0100
commit639a5379e9abf4a3f0d88464d1a229f8d5df14ae (patch)
tree3d05c242b4eaf8e17548c4ebe877a5765c52c0ed /rsa.go
parent577538a5ffb21b402b7ed53279d4b4dce30ace24 (diff)
add sign and verification to ecdsa
This commit adds support to sign and verify messages using ecdsa.
Diffstat (limited to 'rsa.go')
-rw-r--r--rsa.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/rsa.go b/rsa.go
index 71acd55..9a4f298 100644
--- a/rsa.go
+++ b/rsa.go
@@ -41,7 +41,7 @@ func (pr *RsaPrivateKey) Public() PublicKey {
return &RsaPublicKey{pr.private_key.Public().(*rsa.PublicKey)}
}
-func (pr RsaPrivateKey) Sign(message []byte) ([]byte, error) {
+func (pr RsaPrivateKey) Sign(message []byte, hash crypto.Hash) ([]byte, error) {
return make([]byte, 0), errors.New("not implemented yet!")
}
@@ -63,6 +63,6 @@ func (pu *RsaPublicKey) MarshalPem() (marshalledPemBlock, error) {
return pem.EncodeToMemory(&pem_block), nil
}
-func (pu *RsaPublicKey) Verify(message []byte, signature []byte) (bool, error) {
+func (pu *RsaPublicKey) Verify(message []byte, signature []byte, hash crypto.Hash) (bool, error) {
return false, errors.New("not implemented yet!")
}