From 525b4439c951a5a1c2e2274e8f4b7e58fe69c1d8 Mon Sep 17 00:00:00 2001 From: Pol Henarejos <55573252+polhenarejos@users.noreply.github.com> Date: Fri, 25 Mar 2022 16:56:53 +0100 Subject: [PATCH] Update README.md --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 8ffc4c8..8e17310 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,16 @@ For backup, restore and DKEK share management, check [doc/backup-and-restore.md] For AES key generation, encryption and decryption, check [doc/aes.md](/doc/aes.md). +## Key generation time +Generating EC keys is almost instant. RSA keypair generation takes some time, specially for `2048` and `4096` bits. + +| RSA key length (bits) | Average time (seconds) | +| :---: | :---: | +| 1024 | 16 | +| 2048 | 124 | +| 3072 | N/A | +| 4096 | N/A | + ## Driver Pico HSM uses the `sc-hsm` driver provided by [OpenSC](https://github.com/OpenSC/OpenSC/ "OpenSC") or the `sc-hsm-embedded` driver provided by [CardContact](https://github.com/CardContact/sc-hsm-embedded "CardContact"). This driver utilizes the standardized PKCS#11 interface to communicate with the user and it can be used with many engines that accept PKCS#11 interface, such as OpenSSL, P11 library or pkcs11-tool.