23. ⾦金金鑰交換
Key Exchange
A B
A’s Public Key, PKA
A’s Secret Key, SKA
B’s Public Key, PKB
B’s Secret Key, SKB
PKA
PKB
24. ⾦金金鑰交換 (續)
Key Exchange (Con’t)
A B
A’s Public Key, PKA
A’s Secret Key, SKA
B’s Public Key, PKB
B’s Public Key, PKB
B’s Secret Key, SKB
A’s Public Key, PKA
25. ⾦金金鑰交換 (續)
Key Exchange (Con’t)
A B
A’s Public Key, PKA
A’s Secret Key, SKA
B’s Public Key, PKB
A’s Random, RA
B’s Public Key, PKB
B’s Secret Key, SKB
A’s Public Key, PKA
B’s Random, RB
26. ⾦金金鑰交換 (續)
Key Exchange (Con’t)
A B
A’s Public Key, PKA
A’s Secret Key, SKA
B’s Public Key, PKB
A’s Random, RA
B’s Public Key, PKB
B’s Secret Key, SKB
A’s Public Key, PKA
B’s Random, RB
PKB(RA)
PKA(RB)
27. ⾦金金鑰交換 (續)
Key Exchange (Con’t)
A B
A’s Public Key, PKA
A’s Secret Key, SKA
B’s Public Key, PKB
A’s Random, RA
B’s Random, RB
B’s Public Key, PKB
B’s Secret Key, SKB
A’s Public Key, PKA
B’s Random, RB
A’s Random, RA
RA・RB RB・RA
28. ⾦金金鑰交換 (續)
Key Exchange (Con’t)
A B
A’s Public Key, PKA
A’s Secret Key, SKA
B’s Public Key, PKB
A’s Random, RA
B’s Random, RB
B’s Public Key, PKB
B’s Secret Key, SKB
A’s Public Key, PKA
B’s Random, RB
A’s Random, RA
RA・RB RB・RA
只有這兩兩個⼈人知道的 Secret Key
29. ⼩小結⼀一下
1. 做⾦金金鑰交換
A 跟 B 剛剛做了了什什麼?
非對稱式加密演算法
對稱式加密演算法
2. 雙⽅方⽤用相同的⽅方式計算產⽣生
Secret Key
3. ⽤用 Secret Key 做加密通訊