mirror of
https://github.com/stefanberger/libtpms
synced 2026-01-01 21:43:42 +00:00
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:
parent
5b8471a921
commit
54ce6b5c65
@ -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.
|
||||
|
||||
*/
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user