Branch: signing
Module: client
Now we must how our KeyManager be able to sign data and verify the signatures. A quick run through elliptical curve cryptography. We use the private key to sign data, and we can use the public key to verify the signature (verify that it was the private key corresponding to the public key that signed the data.)
In KeyManager.java, there are two functions sign and verify. The sign function will take a private key, data and return the signature. verify takes the signature, data, and public key to verify the signature.
Implement the signing and verifying functionality. Use the SHA-256 ECDSA signing algorithm.
This SO post may come in handy: https://stackoverflow.com/a/18263263/5327161
Branch:
signingModule:
clientNow we must how our KeyManager be able to sign data and verify the signatures. A quick run through elliptical curve cryptography. We use the private key to sign data, and we can use the public key to verify the signature (verify that it was the private key corresponding to the public key that signed the data.)
In
KeyManager.java, there are two functionssignandverify. Thesignfunction will take a private key, data and return the signature.verifytakes the signature, data, and public key to verify the signature.Implement the signing and verifying functionality. Use the SHA-256 ECDSA signing algorithm.
This SO post may come in handy: https://stackoverflow.com/a/18263263/5327161