]> git.proxmox.com Git - libtpms.git/commit
tpm2: Add BIGUM parameter to BigInitialized and use VERIFY in TpmToOsslMath.c
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Sun, 17 Nov 2019 20:43:57 +0000 (15:43 -0500)
committerStefan Berger <stefanb@us.ibm.com>
Tue, 14 Apr 2020 20:03:45 +0000 (16:03 -0400)
commit0be25cbb22edb4d6b8fa763458f26da9d889d6d8
tree1f53ceb1840745b675ab7a4667bfcb2bb24ed291
parente180ef05f75d6182d24c7a426d9f757af376dcbf
tpm2: Add BIGUM parameter to BigInitialized and use VERIFY in TpmToOsslMath.c

The original TPM 2 version of BIG_INITIALIZED uses a BIGNUM
on the stack and uses the internals of the BIGNUM's data structure
to initialize it. We don't do this here but use only the API
functions and therefor have tp free the BIGNMs create with
BIG_INITIALIZED().

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
src/tpm2/crypto/openssl/CryptEccSignature.c
src/tpm2/crypto/openssl/Helpers.c
src/tpm2/crypto/openssl/TpmToOsslMath.c
src/tpm2/crypto/openssl/TpmToOsslMath.h
src/tpm2/crypto/openssl/TpmToOsslMath_fp.h