blob: b221bd25c8fb0b8ec3b7a0b9e06caf4eef7f450e [file] [log] [blame]
NingSun7793a612018-04-10 15:49:01 -07001/* Copyright 2018 Intel Corporation, Inc
2*
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
6*
7* http://www.apache.org/licenses/LICENSE-2.0
8*
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.
14*/
NingSun535535b2018-02-28 18:24:31 -080015
16#include <stdio.h>
17
NingSun535535b2018-02-28 18:24:31 -080018#include "tpm2_plugin_api.h"
19
NingSun337e6752018-03-29 21:06:26 -070020int sshsm_hw_plugin_get_plugin_functions(SSHSM_HW_FUNCTIONS_t *funcs)
NingSun535535b2018-02-28 18:24:31 -080021{
22 printf("%s(): Assigning Function pointers for TPM (dTPM or PTT) mode \n", __func__);
NingSun337e6752018-03-29 21:06:26 -070023 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;
NingSun535535b2018-02-28 18:24:31 -080030
31 return 0;
32}