Main Page | Data Structures | File List | Data Fields | Globals

WFU.h

Go to the documentation of this file.
00001 
00002 /*
00003  * libwfu - A Key Escrow Client/Server and API for TrueCrypt.
00004  * Copyright (C) 2007 Wake Forest University
00005  *
00006  * This program is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2 of the License, or (at
00009  * your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful, but
00012  * WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
00019  *
00020  * Author: J. Mike Rollins <rollins@wfu.edu> and Carl Fulp <fulpc@wfu.edu>
00021  */
00022 
00040 // constants
00041 #include "libwfu.h"
00042 
00043 // getters and setters
00044 #include "common_parameters.h"
00045 
00046 // query errors
00047 #include "common_error.h"
00048 
00049 #ifndef WFU_H
00050 #define WFU_H
00051 
00052 # ifdef  __cplusplus
00053 extern "C" {
00054 # endif
00055 
00056 
00058 struct wfu_data
00059   {
00061     unsigned char *text;
00062 
00064     int len;
00065   };
00066 
00067 
00069 struct wfu_uvid
00070   {
00071     unsigned char username[WFU_SIZE_USERNAME]; 
00072     unsigned char salt[WFU_SIZE_SALT]; 
00073     unsigned char timestamp[WFU_SIZE_INT64]; 
00074   };
00075 
00076 
00115 struct wfu_uvid *WFU_lib_prepare_uvid(unsigned char *username, unsigned char* salt, unsigned char *timestamp);
00116 
00117 
00118 
00119 
00172 int WFU_lib_escrow(char *username, char* password, struct wfu_uvid *uvid, struct wfu_data *crypto);
00173 
00174 
00175 
00176 
00225 int WFU_lib_verify_uvid(struct wfu_uvid *uvid);
00226 
00227 
00228 
00269 struct wfu_data *WFU_lib_reclaim_keys(char *username, char* passwd, int pk);
00270 
00271 
00272 
00308 struct wfu_line_array *WFU_lib_query_salt(char *username, char* password, struct wfu_data *salt);
00309 
00310 
00311 
00312 
00348 struct wfu_line_array *WFU_lib_query_user(char *username, char* password, char *query_user);
00349 
00350 
00351 
00356 int WFU_lib_test_ssl();
00357 
00358 # ifdef  __cplusplus
00359 }
00360 # endif
00361 
00362 #endif
00363 

Generated on Wed Oct 10 12:38:20 2007 for WFUCrypt by  doxygen 1.3.9.1