Computer System Security Homework Project.
Spring 2018 Homework
In this homework, you are expected to implement the following (in any programming language):
- Generate an RSA public-private key pair. KA+ and KA-.
- Generate a 128 bit symmetric key KS. Encypt it with KA+, print the result, and then decrypt it with KA-. Again print the result.
- Consider a long text m. Apply SHA2 Hash algorithm (Obtain the message digest, H(m)). Then encrypt it with KA-. (Thus generate a digital signature.) Then verify the digital signature. (Decrypt it with KA+, apply Hash algorithm to the message,compare).
- Consider a text m. Apply HMAC using KS and SHA2 algorithms.
- Encypt a long text using AES algorithm in CBC mode. Print the result. (IV should be randomly generated, Key = KS) Then decrypt it. Again print the result.