feat: update readme, add encrypt/decrypt by smart card(yubikey)

This commit is contained in:
2023-09-26 00:52:52 +08:00
parent 1465e80091
commit 5467bf797f

View File

@@ -49,9 +49,9 @@ Smart Card(Yubikey) protected ECDH Encryption description:
│Tiny Encrypt │ │Smart Card (Yubikey) │
│ │ Get Public Key(P) │ │
│ │ ◄───────────────────┤ Private Key d │
│ │ │ P = kG │
│ │ │ P = dG │
│ │ Temp Private Key k │ │
└───────────────────┘ G = kG └───────────────────────────┘
└───────────────────┘ Q = kG └───────────────────────────┘
Shared Secret = kP = kdG
@@ -59,8 +59,8 @@ Smart Card(Yubikey) protected ECDH Encryption description:
Send Q to Smart Card
─────────────────►
Shared Secret = kQ = kdG
───────────────────
Shared Secret = dQ = kdG
Decrypt using derived key from restored Shared Secret
```