Botan 3.9.0
Crypto and TLS for C&
tpm2_crypto_backend_impl.h
Go to the documentation of this file.
1/*
2* TPM 2 TSS crypto callbacks backend implementation
3* (C) 2024 Jack Lloyd
4* (C) 2024 René Meusel, Amos Treiber - Rohde & Schwarz Cybersecurity GmbH, financed by LANCOM Systems GmbH
5*
6* Botan is released under the Simplified BSD License (see license.txt)
7*/
8
9#ifndef BOTAN_TPM2_CRYPTO_BACKEND_IMPL_H_
10#define BOTAN_TPM2_CRYPTO_BACKEND_IMPL_H_
11
12struct ESYS_CONTEXT;
13
14namespace Botan::TPM2 {
15
16/**
17 * Enable Botan's crypto callbacks in the TPM2-TSS for the given @p context.
18 * @throws Not_Implemented if the TPM2-TSS does not support crypto callbacks.
19 */
20void set_crypto_callbacks(ESYS_CONTEXT* context, void* callback_state);
21
22} // namespace Botan::TPM2
23
24#endif
void set_crypto_callbacks(ESYS_CONTEXT *ctx, void *callback_state)