tpm12: Use USE_FREEBL_CRYPTO_LIBRARY to enable function

A tpm12 function that is only needed with freebl library can
be conditionally enabled with '#if USE_FREEBL_CRYPTO_LIBRARY'.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
Stefan Berger 2020-10-12 20:26:19 -04:00 committed by Stefan Berger
parent 5b8471a921
commit 54ce6b5c65
2 changed files with 4 additions and 2 deletions

View File

@ -752,7 +752,7 @@ TPM_RESULT TPM_RSAPublicEncrypt(unsigned char* encrypt_data, /* encrypted dat
return rc;
}
#if 0
#if USE_FREEBL_CRYPTO_LIBRARY
/* TPM_RSAPublicEncryptRaw() does a raw public key operation without any padding.
*/

View File

@ -40,6 +40,8 @@
#ifndef TPM_CRYPTO_H
#define TPM_CRYPTO_H
#include "config.h" /* libtpms added */
#include "tpm_secret.h"
#include "tpm_types.h"
@ -129,7 +131,7 @@ TPM_RESULT TPM_RSAPublicEncrypt(unsigned char* encrypt_data,
uint32_t nbytes,
unsigned char *earr,
uint32_t ebytes);
#if 0
#if USE_FREEBL_CRYPTO_LIBRARY
TPM_RESULT TPM_RSAPublicEncryptRaw(unsigned char *encrypt_data,
uint32_t encrypt_data_size,
unsigned char *decrypt_data,