A Asymmetric Cryptosystem based off the DLP. Often used as:
Uses a pair of Commutative Keys. https://www.youtube.com/watch?v=Pq8gNbvfaoM
Commonly Used Terminology
- P and Q: 2 Prime s used in generation
- N: Product of 2 primes
- T: Totient of 2 primes
- E: Public key
- D: Private key
Generating Keys
- Select 2 prime numbers P and Q.
- Calculate the product N. P*Q. note: this number is semi-prime because 2 primes multiplied to get it
- Calculate the totient T. (P-1)*(Q-1) Now you can create the public and private keys The public key E:
- Must be prime
- Must be less than the totient
- Must not be a factor of the totient. The private key D must fulfill:
-
- The remainder must be 1
Encrypting/Decrypting
Encrypting
Decrypting
Because this is Commutative, you can also encrypt with the private key and decrypt with the public key.