diff options
author | Gibheer <gibheer@gmail.com> | 2015-02-18 22:55:29 +0100 |
---|---|---|
committer | Gibheer <gibheer@gmail.com> | 2015-02-18 22:55:29 +0100 |
commit | 639a5379e9abf4a3f0d88464d1a229f8d5df14ae (patch) | |
tree | 3d05c242b4eaf8e17548c4ebe877a5765c52c0ed /rsa.go | |
parent | 577538a5ffb21b402b7ed53279d4b4dce30ace24 (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.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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!") } |