feat: update readme, add encrypt/decrypt by smart card(yubikey)
This commit is contained in:
@@ -49,9 +49,9 @@ Smart Card(Yubikey) protected ECDH Encryption description:
|
|||||||
│Tiny Encrypt │ │Smart Card (Yubikey) │
|
│Tiny Encrypt │ │Smart Card (Yubikey) │
|
||||||
│ │ Get Public Key(P) │ │
|
│ │ Get Public Key(P) │ │
|
||||||
│ │ ◄───────────────────┤ Private Key d │
|
│ │ ◄───────────────────┤ Private Key d │
|
||||||
│ │ │ P = kG │
|
│ │ │ P = dG │
|
||||||
│ │ Temp Private Key k │ │
|
│ │ Temp Private Key k │ │
|
||||||
└───────────────────┘ G = kG └───────────────────────────┘
|
└───────────────────┘ Q = kG └───────────────────────────┘
|
||||||
|
|
||||||
Shared Secret = kP = kdG
|
Shared Secret = kP = kdG
|
||||||
|
|
||||||
@@ -59,8 +59,8 @@ Smart Card(Yubikey) protected ECDH Encryption description:
|
|||||||
|
|
||||||
|
|
||||||
Send Q to Smart Card
|
Send Q to Smart Card
|
||||||
─────────────────►
|
───────────────────►
|
||||||
Shared Secret = kQ = kdG
|
Shared Secret = dQ = kdG
|
||||||
|
|
||||||
Decrypt using derived key from restored Shared Secret
|
Decrypt using derived key from restored Shared Secret
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user