Skip to content

Instantly share code, notes, and snippets.

@riking
Created April 27, 2013 04:35
Show Gist options
  • Save riking/5471894 to your computer and use it in GitHub Desktop.
Save riking/5471894 to your computer and use it in GitHub Desktop.
1. Server sends public key to client
- Call this EB
2. Client generates random number
- Call this random number RA
- Call client's name IA
3. Client computes EB(IA, RA) and sends to server
4. Server uses IA to look up EA
5. Server generates random number
- Call this random number RB
6. Server computes session key
- Call this KS
7. Server computes EA(RA, RB, KS) and sends to client
8. Client compares generated & received RA, is satisfied of server's identity
9. Client computes KS(RB) and sends to server
10. Server satisfied of client's identity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment