aboutsummaryrefslogblamecommitdiffstats
path: root/doc/api-documentation/html/swcipher_8h-source.html
blob: c0d5ee5a74388124036c61f89750c5dbedab0f4a (plain) (tree)
1
2
3
4
5
6
7




                                                                                   
                                    
        




















                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
      



                                                                                            
      
                                                               
      
























                                                                                                                                                                                                                                                                       

                                                             
                                                 

       
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>swcipher.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.2.17 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </center>
<hr><h1>swcipher.h</h1><div class="fragment"><pre>00001 <span class="comment">/******************************************************************************</span>
00002 <span class="comment"> *  swcipher.h   - definition of Class SWCipher used for data cipher/decipher</span>
00003 <span class="comment"> *</span>
00004 <span class="comment"> * $Id: swcipher_8h-source.html,v 1.9 2002/10/31 11:30:16 joachim Exp $</span>
00005 <span class="comment"> *</span>
00006 <span class="comment"> * Copyright 1999 CrossWire Bible Society (http://www.crosswire.org)</span>
00007 <span class="comment"> *      CrossWire Bible Society</span>
00008 <span class="comment"> *      P. O. Box 2528</span>
00009 <span class="comment"> *      Tempe, AZ  85280-2528</span>
00010 <span class="comment"> *</span>
00011 <span class="comment"> * This program is free software; you can redistribute it and/or modify it</span>
00012 <span class="comment"> * under the terms of the GNU General Public License as published by the</span>
00013 <span class="comment"> * Free Software Foundation version 2.</span>
00014 <span class="comment"> *</span>
00015 <span class="comment"> * This program is distributed in the hope that it will be useful, but</span>
00016 <span class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</span>
00017 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
00018 <span class="comment"> * General Public License for more details.</span>
00019 <span class="comment"> *</span>
00020 <span class="comment"> */</span>
00021 
00022 <span class="preprocessor">#ifndef SWCIPHER_H</span>
00023 <span class="preprocessor"></span><span class="preprocessor">#define SWCIPHER_H</span>
00024 <span class="preprocessor"></span>
00025 <span class="preprocessor">#include "sapphire.h"</span>
00026 
00027 <span class="preprocessor">#include &lt;defs.h&gt;</span>
00028 
00029 SWORD_NAMESPACE_START
00030 
00031 <span class="keyword">class </span>SWDLLEXPORT SWCipher
00032 {
00033 
00034   sapphire master;
00035   sapphire work;
00036 
00037   <span class="keywordtype">char</span> *buf;
00038   <span class="keywordtype">bool</span> cipher;
00039   <span class="keywordtype">int</span> len;
00040 <span class="keyword">protected</span>:
00041 <span class="keyword">public</span>:
00042     SWCipher (<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *key);
00043   <span class="keyword">virtual</span> <span class="keywordtype">void</span> setCipherKey (<span class="keyword">const</span> <span class="keywordtype">char</span> *key);
00044     <span class="keyword">virtual</span> ~ SWCipher ();
00045   <span class="keyword">virtual</span> <span class="keywordtype">char</span> *Buf (<span class="keyword">const</span> <span class="keywordtype">char</span> *buf = 0, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> len = 0);
00046   <span class="keyword">virtual</span> <span class="keywordtype">char</span> *cipherBuf (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> *len, <span class="keyword">const</span> <span class="keywordtype">char</span> *buf = 0);
00047   <span class="keyword">virtual</span> <span class="keywordtype">void</span> Encode (<span class="keywordtype">void</span>);
00048   <span class="keyword">virtual</span> <span class="keywordtype">void</span> Decode (<span class="keywordtype">void</span>);
00049 };
00050 
00051 SWORD_NAMESPACE_END
00052 <span class="preprocessor">#endif</span>
</pre></div><hr><address style="align: right;"><small>Generated on Thu Oct 31 12:11:28 2002 for The Sword Project by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 
width=110 height=53></a>1.2.17 </small></address>
</body>
</html>