00001 /*************************************************************************** 00002 $RCSfile$ 00003 ------------------- 00004 cvs : $Id: cryptssl_l.h 985 2006-02-10 03:17:04Z aquamaniac $ 00005 begin : Thu Nov 06 2003 00006 copyright : (C) 2003 by Martin Preuss 00007 email : martin@libchipcard.de 00008 00009 *************************************************************************** 00010 * * 00011 * This library is free software; you can redistribute it and/or * 00012 * modify it under the terms of the GNU Lesser General Public * 00013 * License as published by the Free Software Foundation; either * 00014 * version 2.1 of the License, or (at your option) any later version. * 00015 * * 00016 * This library is distributed in the hope that it will be useful, * 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 00019 * Lesser General Public License for more details. * 00020 * * 00021 * You should have received a copy of the GNU Lesser General Public * 00022 * License along with this library; if not, write to the Free Software * 00023 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, * 00024 * MA 02111-1307 USA * 00025 * * 00026 ***************************************************************************/ 00027 00028 00029 #ifndef GWENHYWFAR_CRYPTSSL_L_H 00030 #define GWENHYWFAR_CRYPTSSL_L_H 00031 00032 00033 #define GWEN_CRYPT_RSA_DEFAULT_KEY_LENGTH 1024 00034 #define GWEN_CRYPT_RSA_MAX_KEY_LENGTH 4096 00035 #define GWEN_CRYPT_RSA_DEFAULT_EXPONENT 65537 00036 00037 00038 #include <gwenhywfar/crypt.h> 00039 #include <stdio.h> 00040 00041 #include <openssl/bn.h> 00042 00043 00044 GWEN_ERRORCODE GWEN_CryptImpl_Init(); 00045 GWEN_ERRORCODE GWEN_CryptImpl_Fini(); 00046 00047 void GWEN_CryptImpl_Dump_Bignum(BIGNUM *bn, FILE *f, int indent); 00048 00049 GWEN_ERRORCODE GWEN_CryptKeyBF_Register(); 00050 GWEN_ERRORCODE GWEN_CryptKeyDES_Register(); 00051 00052 GWEN_ERRORCODE GWEN_MdMd5_Register(); 00053 GWEN_ERRORCODE GWEN_MdRmd160_Register(); 00054 GWEN_ERRORCODE GWEN_MdSha1_Register(); 00055 00056 00057 00058 00059 00060 GWEN_ERRORCODE GWEN_CryptKeyRSA_Register(); 00061 00062 00063 #endif 00064 00065