padd.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  $RCSfile$
00003  -------------------
00004  cvs         : $Id$
00005  begin       : Mon Jan 05 2004
00006  copyright   : (C) 2004 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 #ifndef GWEN_PADD_H
00029 #define GWEN_PADD_H
00030 
00031 #include <gwenhywfar/buffer.h>
00032 #include <gwenhywfar/paddalgo.h>
00033 
00034 #ifdef __cplusplus
00035 extern "C" {
00036 #endif
00037 
00038 
00049 
00056 GWENHYWFAR_API
00057 int GWEN_Padd_PaddWithISO9796(GWEN_BUFFER *src);
00058 
00062 GWENHYWFAR_API
00063 int GWEN_Padd_PaddWithIso9796_2(GWEN_BUFFER *buf, int dstSize);
00064 
00065 
00066 GWENHYWFAR_API
00067 int GWEN_Padd_UnpaddWithIso9796_2(GWEN_BUFFER *buf);
00068 
00081 GWENHYWFAR_API
00082 int GWEN_Padd_PaddWithAnsiX9_23(GWEN_BUFFER *src);
00083 
00088 GWENHYWFAR_API
00089 int GWEN_Padd_UnpaddWithAnsiX9_23(GWEN_BUFFER *src);
00090 
00091 
00092 GWENHYWFAR_API
00093 int GWEN_Padd_PaddWithPkcs1Bt1(GWEN_BUFFER *src, int dstSize);
00094 
00095 GWENHYWFAR_API
00096 int GWEN_Padd_UnpaddWithPkcs1Bt1(GWEN_BUFFER *src);
00097 
00098 GWENHYWFAR_API
00099 int GWEN_Padd_PaddWithPkcs1Bt2(GWEN_BUFFER *src, int dstSize);
00100 
00101 GWENHYWFAR_API
00102 int GWEN_Padd_UnpaddWithPkcs1Bt2(GWEN_BUFFER *src);
00103 
00104 
00105 GWENHYWFAR_API
00106 int GWEN_Padd_ApplyPaddAlgo(const GWEN_CRYPT_PADDALGO *a, GWEN_BUFFER *src);
00107 
00108 GWENHYWFAR_API
00109 int GWEN_Padd_UnapplyPaddAlgo(const GWEN_CRYPT_PADDALGO *a, GWEN_BUFFER *buf);
00110 
00113 #ifdef __cplusplus
00114 }
00115 #endif
00116 
00117 
00118 
00119 #endif /* GWEN_PADD_H */
00120 

Generated on Wed Sep 3 15:21:59 2008 for gwenhywfar by  doxygen 1.5.6