libtpms/src
Stefan Berger fdb9ad3b73 tpm2: Implement a cache for the private exponent D and prime Q
Implement a cache for the private exponent 'D' and prime 'Q' so that we
do not have to recalculate 'Q' and 'D' every time an RSA key is used. For
a cache hit we now use ~34000 cycles and on a cache miss it needs around
130000 cycles. Previously it needed around 100000 cycles to calcuate 'Q'
and 'D'. Assuming that keys will be reused and the cache is big enough
for the number of keys being use (64 entries), it seems well worth it.

This solution is better than extending the OBJECT with 'D' since OBJECT is
kept in the TPM's NVRAM and we would then need more memory to store OBJECTs
there.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2021-03-23 15:39:27 -04:00
..
tpm2 tpm2: Implement a cache for the private exponent D and prime Q 2021-03-23 15:39:27 -04:00
tpm12 Fix many misspellings 2021-03-02 08:20:25 -05:00
compiler.h library: use __attribute__((format,...) to check printf format and args 2018-06-15 18:07:49 -04:00
libtpms.syms Integrate the TPM 2 into the library; do not compile with TPM 2 yet 2018-06-15 18:07:47 -04:00
Makefile.am tpm2: Implement a cache for the private exponent D and prime Q 2021-03-23 15:39:27 -04:00
test.syms build-sys: work around broken linker when testing --version-script support 2018-08-30 21:45:16 +00:00
tpm_library_conf.h Fix many misspellings 2021-03-02 08:20:25 -05:00
tpm_library_intern.h tpm2: Log command that put TPM 2 into failure mode 2018-12-10 09:17:25 -05:00
tpm_library.c [build-sys] Add -Wmissing-prototypes to CFLAGS and clean up 2020-06-01 18:23:07 -04:00
tpm_tpm2_interface.c tpm2: Implement a cache for the private exponent D and prime Q 2021-03-23 15:39:27 -04:00
tpm_tpm2_tis.c tpm2: rev155: Major refactoring of header files 2020-04-14 16:03:45 -04:00
tpm_tpm12_interface.c [build-sys] Add -Wmissing-prototypes to CFLAGS and clean up 2020-06-01 18:23:07 -04:00
tpm_tpm12_tis.c Introduce internal interface to reach TPM functionality 2015-12-08 09:07:54 -05:00