1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-11-09 21:28:51 +01:00
gnupg/tpm2d
Werner Koch d631c8198c
tpm: Improve error handling and check returned lengths.
* tpm2d/command.c (cmd_pkdecrypt): Handle unknown algo.  Also slightly
rework error handling.
* tpm2d/tpm2.c (sexp_to_tpm2_public_ecc): Check length before checking
for 0x04.  Rework error handling.
(tpm2_ObjectPublic_GetName): Check the return value of
TSS_GetDigestSize before use.  Erro handling rework.
(tpm2_SensitiveToDuplicate): Ditto.
(tpm2_import_key): Ditto.
* tpm2d/intel-tss.h (TSS_Hash_Generate): Check passed length for
negative values.  Check return value of TSS_GetDigestSize.  Use
dedicated 16 bit length variable.
--

These are reworked and improved fixes as reported in
GnuPG-bug-id: 7129
2024-05-28 12:57:44 +02:00
..
command.c tpm: Improve error handling and check returned lengths. 2024-05-28 12:57:44 +02:00
ibm-tss.h tpmd2: Add copyright blurbs. 2021-03-11 08:33:44 +01:00
intel-tss.h tpm: Improve error handling and check returned lengths. 2024-05-28 12:57:44 +02:00
Makefile.am tpmd2: Add Support for the Intel TSS 2021-03-11 08:49:45 +01:00
tpm2.c tpm: Improve error handling and check returned lengths. 2024-05-28 12:57:44 +02:00
tpm2.h tpmd2: Add Support for the Intel TSS 2021-03-11 08:49:45 +01:00
tpm2daemon.c tpm2d: Fix call to assuan_control. 2023-10-02 10:32:04 +09:00
tpm2daemon.h scd,tpm2d: Fix for consistent use of socket FD. 2022-03-31 21:03:13 +09:00