1 /* Copyright 2018 Intel Corporation, Inc
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
18 #include "tpm2_plugin_api.h"
20 int sshsm_hw_plugin_get_plugin_functions(SSHSM_HW_FUNCTIONS_t *funcs)
22 printf("%s(): Assigning Function pointers for TPM (dTPM or PTT) mode \n", __func__);
23 funcs->xxx_init = &tpm2_plugin_init;
24 funcs->xxx_uninit = &tpm2_plugin_uninit;
25 funcs->xxx_activate = &tpm2_plugin_activate;
26 funcs->xxx_load_key = &tpm2_plugin_load_key;
27 funcs->xxx_unload_key = NULL;
28 funcs->xxx_rsa_sign_init = &tpm2_plugin_rsa_sign_init;
29 funcs->xxx_rsa_sign = &tpm2_plugin_rsa_sign;