1 /* An implementation of the sigprov interface for KSI-LS12.
2  *
3  * Copyright 2013-2017 Adiscon GmbH and Guardtime, Inc.
4  *
5  * This file is part of the rsyslog runtime library.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *       http://www.apache.org/licenses/LICENSE-2.0
12  *       -or-
13  *       see COPYING.ASL20 in the source distribution
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  */
21 #ifndef INCLUDED_LMSIG_LS12_KSI_H
22 #define INCLUDED_LMSIG_LS12_KSI_H
23 #include "sigprov.h"
24 #include "lib_ksils12.h"
25 
26 /* interface is defined in sigprov.h, we just implement it! */
27 #define lmsig_ksi_ls12CURR_IF_VERSION sigprovCURR_IF_VERSION
28 typedef sigprov_if_t lmsig_ksi_ls12_if_t;
29 
30 /* the lmsig_ksi object */
31 struct lmsig_ksi_ls12_s {
32 	BEGINobjInstance; /* Data to implement generic object - MUST be the first data element! */
33 	rsksictx ctx;	/* librsksi context - contains all we need */
34 };
35 typedef struct lmsig_ksi_ls12_s lmsig_ksi_ls12_t;
36 
37 /* prototypes */
38 PROTOTYPEObj(lmsig_ksi_ls12);
39 
40 #endif /* #ifndef INCLUDED_LMSIG_LS12_KSI_H */
41