Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

XSECCryptoBase64.hpp

Go to the documentation of this file.
00001 /*
00002  * Copyright 2002-2005 The Apache Software Foundation.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *     http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 /*
00018  * XSEC
00019  *
00020  * XSECCryptoBase64 := Base virtual class to define a base64 encoder/decoder
00021  *
00022  * Author(s): Berin Lautenbach
00023  *
00024  * $Id: XSECCryptoBase64.hpp,v 1.9 2005/02/03 12:48:16 milan Exp $
00025  *
00026  */
00027 
00028 #ifndef XSECCRYPTOBASE64_INCLUDE
00029 #define XSECCRYPTOBASE64_INCLUDE
00030 
00031 #include <xsec/framework/XSECDefs.hpp>
00032 
00036  /*\@{*/
00037 
00054 class DSIG_EXPORT XSECCryptoBase64 {
00055 
00056 
00057 public :
00058 
00059     // Constructors/Destructors
00060     
00061     XSECCryptoBase64() {};
00062     virtual ~XSECCryptoBase64() {};
00063 
00066 
00077     virtual void         decodeInit(void) = 0;
00078 
00099     virtual unsigned int decode(const unsigned char * inData, 
00100                                 unsigned int inLength,
00101                                 unsigned char * outData,
00102                                 unsigned int outLength) = 0;
00114     virtual unsigned int decodeFinish(unsigned char * outData,
00115                                       unsigned int outLength) = 0;
00116 
00118 
00121 
00132     virtual void         encodeInit(void) = 0;
00133 
00156     virtual unsigned int encode(const unsigned char * inData, 
00157                                 unsigned int inLength,
00158                                 unsigned char * outData,
00159                                 unsigned int outLength) = 0;
00172     virtual unsigned int encodeFinish(unsigned char * outData,
00173                                       unsigned int outLength) = 0;
00174 
00176 
00179 
00194     static char * cleanBuffer(const char * buffer, unsigned int bufLen, unsigned int &retBufLen);
00195 
00197 
00198 };
00199 /*\@}*/
00200 #endif /* XSECCRYPTOBASE64_INCLUDE */

Generated on Sun Jul 3 17:37:28 2005 for XML-Security-C by  doxygen 1.4.2