OpenPACE
ri.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2010-2012 Dominik Oepen, Frank Morgner and Paul Wilhelm
3  *
4  * This file is part of OpenPACE.
5  *
6  * OpenPACE is free software: you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License as published by the Free
8  * Software Foundation, either version 3 of the License, or (at your option)
9  * any later version.
10  *
11  * OpenPACE is distributed in the hope that it will be useful, but WITHOUT ANY
12  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14  * details.
15  *
16  * You should have received a copy of the GNU General Public License along with
17  * OpenPACE. If not, see <http://www.gnu.org/licenses/>.
18  *
19  * Additional permission under GNU GPL version 3 section 7
20  *
21  * If you modify this Program, or any covered work, by linking or combining it
22  * with OpenSSL (or a modified version of that library), containing
23  * parts covered by the terms of OpenSSL's license, the licensors of
24  * this Program grant you additional permission to convey the resulting work.
25  * Corresponding Source for a non-source form of such a combination shall include
26  * the source code for the parts of OpenSSL used as well as that of the
27  * covered work.
28  *
29  * If you modify this Program, or any covered work, by linking or combining it
30  * with OpenSC (or a modified version of that library), containing
31  * parts covered by the terms of OpenSC's license, the licensors of
32  * this Program grant you additional permission to convey the resulting work.
33  * Corresponding Source for a non-source form of such a combination shall include
34  * the source code for the parts of OpenSC used as well as that of the
35  * covered work.
36  */
37 
56 #ifndef RI_H_
57 #define RI_H_
58 
59 #include <eac/eac.h>
60 #include <openssl/bn.h>
61 #include <openssl/buffer.h>
62 
63 #ifdef __cplusplus
64 extern "C" {
65 #endif
66 
77 void RI_CTX_clear_free(RI_CTX * s);
83 RI_CTX * RI_CTX_new(void);
93 int RI_CTX_set_protocol(RI_CTX * ctx, int protocol);
109 BUF_MEM * RI_STEP2_compute_identifier(EAC_CTX *ctx, BUF_MEM *sector_pubkey);
110 
113 #ifdef __cplusplus
114 }
115 #endif
116 #endif
RI_STEP2_compute_identifier
BUF_MEM * RI_STEP2_compute_identifier(EAC_CTX *ctx, BUF_MEM *sector_pubkey)
Compute a sector specific identifier for a card within a given sector.
eac.h
Interface for Extended Access Control.
ri_ctx
Context for the Restricted Identification protocol.
Definition: eac.h:199
RI_CTX_clear_free
void RI_CTX_clear_free(RI_CTX *s)
Frees a RI_CTX object and all its components.
RI_CTX_set_protocol
int RI_CTX_set_protocol(RI_CTX *ctx, int protocol)
Initializes a RI_CTX object using the protocol OID. This parameter can be found in the RIInfo part of...
RI_CTX_new
RI_CTX * RI_CTX_new(void)
Creates a new RI_CTX object.
eac_ctx
Context for the Extended Access Control protocol.
Definition: eac.h:342