GithubHelp home page GithubHelp logo

vaibhav2903 / rsa-oaep-cryptography Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pwnalone/rsa-oaep-crypto

0.0 2.0 0.0 40 KB

Implementation of the RSA-OAEP cryptographic algorithm.

C++ 96.55% C 1.15% Makefile 2.31%

rsa-oaep-cryptography's Introduction

README
----------
This is a project I did myself to help me practice my C++ programming.
I implemented the RSA-OAEP encryption/decryption algorithms, and wrote
some code to read and write Der-Pem encoded RSA public/private keys.

The padding scheme is OAEP-MGF1(SHA256), which is used to make the
entire RSA-OAEP algorithm CPA (Chosen Plaintext Attack) Secure.
I also read what I believe is the standards document for RSA - RFC 3447 -
and have followed their explanation of the RSADS-OAEP algorithm, so
that my implementation won't be subject to timing attacks (hopefully).

I used the GNU GMP (GNU Multiple Precision) Library as my arbitrary
precision library.

Dependencies
---------------
	+ Linux/Unix Operating System
	+ gcc/g++ Compiler
	+ GMP Library must be installed with C++ enabled (http://www.gmplib.org/)

*Note: I've only tested my project on Mac OS X 10.8.4 and on Ubuntu 12.10,
so I don't know how it will run on other operating systems.

My project's executable programs are in the Demos folder, and can be
compiled by typing 'make <file_name>' and replacing <file_name> with the
name of program (ex. mask.cc --> 'make mask').

Also, I used valgrind to check my programs for memory leaks, and it
showed that there were none.	:)

References
--------------
Here is a list of my sources, which I used to research the RSA-OAEP
algorithm, and found very helpful when I got stuck.

1. PKCS#1 Crypto Standard PDF
(http://www.rsa.com/rsalabs/pkcs/files/h11300-wp-pkcs-1v2-2-rsa-cryptography-standard.pdf)
2. Wikipedia - RSA (algorithm)
(http://en.wikipedia.org/wiki/RSA_(algorithm))
3. Wikipedia - OAEP
(http://en.wikipedia.org/wiki/Optimal_Asymmetric_Encryption_Padding)
4. Wikipedia - PKCS#1
(http://en.wikipedia.org/wiki/PKCS1)
5. Microsoft ASN.1 Documentation
(http://msdn.microsoft.com/en-us/library/windows/desktop/bb540796(v=vs.85).aspx)
6. Cryptography 1 Course
(http://coursera.org/)
7. StackOverflow
(I lost track of the links... oops)

rsa-oaep-cryptography's People

Contributors

pwnalone avatar vaibhav2903 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.