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 
38 #ifndef RI_H_
39 #define RI_H_
40 
41 #include <eac/eac.h>
42 #include <openssl/bn.h>
43 #include <openssl/buffer.h>
44 
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
48 
59 void RI_CTX_clear_free(RI_CTX * s);
65 RI_CTX * RI_CTX_new(void);
75 int RI_CTX_set_protocol(RI_CTX * ctx, int protocol);
91 BUF_MEM * RI_STEP2_compute_identifier(EAC_CTX *ctx, BUF_MEM *sector_pubkey);
92 
95 #ifdef __cplusplus
96 }
97 #endif
98 #endif
Interface for Extended Access Control.
void RI_CTX_clear_free(RI_CTX *s)
Frees a RI_CTX object and all its components.
Context for the Restricted Identification protocol.
Definition: eac.h:181
Context for the Extended Access Control protocol.
Definition: eac.h:324
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...
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.
RI_CTX * RI_CTX_new(void)
Creates a new RI_CTX object.