Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 7392c77c84ff25edfeb07995a77d5148 > files > 132

steghide-0.5.1-11mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>steghide: EncryptionMode.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.9 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
<h1>EncryptionMode.h</h1><a href="EncryptionMode_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * steghide 0.5.1 - a steganography program</span>
<a name="l00003"></a>00003 <span class="comment"> * Copyright (C) 1999-2003 Stefan Hetzl &lt;shetzl@chello.at&gt;</span>
<a name="l00004"></a>00004 <span class="comment"> *</span>
<a name="l00005"></a>00005 <span class="comment"> * This program is free software; you can redistribute it and/or</span>
<a name="l00006"></a>00006 <span class="comment"> * modify it under the terms of the GNU General Public License</span>
<a name="l00007"></a>00007 <span class="comment"> * as published by the Free Software Foundation; either version 2</span>
<a name="l00008"></a>00008 <span class="comment"> * of the License, or (at your option) any later version.</span>
<a name="l00009"></a>00009 <span class="comment"> *</span>
<a name="l00010"></a>00010 <span class="comment"> * This program is distributed in the hope that it will be useful,</span>
<a name="l00011"></a>00011 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00012"></a>00012 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00013"></a>00013 <span class="comment"> * GNU General Public License for more details.</span>
<a name="l00014"></a>00014 <span class="comment"> *</span>
<a name="l00015"></a>00015 <span class="comment"> * You should have received a copy of the GNU General Public License</span>
<a name="l00016"></a>00016 <span class="comment"> * along with this program; if not, write to the Free Software</span>
<a name="l00017"></a>00017 <span class="comment"> * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.</span>
<a name="l00018"></a>00018 <span class="comment"> *</span>
<a name="l00019"></a>00019 <span class="comment"> */</span>
<a name="l00020"></a>00020 
<a name="l00021"></a>00021 <span class="preprocessor">#ifndef SH_ENCMODE_H</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor">#define SH_ENCMODE_H</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00025"></a>00025 
<a name="l00026"></a><a class="code" href="classEncryptionMode.html">00026</a> <span class="keyword">class </span><a class="code" href="classEncryptionMode.html">EncryptionMode</a> {
<a name="l00027"></a>00027         <span class="keyword">public</span>:
<a name="l00029"></a><a class="code" href="classEncryptionMode.html#f91221dba10e069148e860ddd92d5b15">00029</a>         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classEncryptionMode.html#f91221dba10e069148e860ddd92d5b15" title="number of bits needed to code the mode">IRep_size</a> = 3 ;
<a name="l00030"></a>00030 
<a name="l00032"></a><a class="code" href="classEncryptionMode.html#136e2b84c94488c7f0fe4c2c781b1581">00032</a>         <span class="keyword">enum</span> <a class="code" href="classEncryptionMode.html#136e2b84c94488c7f0fe4c2c781b1581" title="integer representation of encryption mode">IRep</a> {
<a name="l00033"></a><a class="code" href="classEncryptionMode.html#136e2b84c94488c7f0fe4c2c781b1581c08a5875339f740132386b99b8262a23">00033</a>                 <a class="code" href="classEncryptionMode.html#136e2b84c94488c7f0fe4c2c781b1581c08a5875339f740132386b99b8262a23">ECB</a> = 0,
<a name="l00034"></a><a class="code" href="classEncryptionMode.html#136e2b84c94488c7f0fe4c2c781b15813c5b2f7f95ff4b1613687119248ab96d">00034</a>                 <a class="code" href="classEncryptionMode.html#136e2b84c94488c7f0fe4c2c781b15813c5b2f7f95ff4b1613687119248ab96d">CBC</a> = 1,
<a name="l00035"></a><a class="code" href="classEncryptionMode.html#136e2b84c94488c7f0fe4c2c781b15811a6e3391aab5f3c35ff71f4e89875b74">00035</a>                 <a class="code" href="classEncryptionMode.html#136e2b84c94488c7f0fe4c2c781b15811a6e3391aab5f3c35ff71f4e89875b74">OFB</a> = 2,
<a name="l00036"></a><a class="code" href="classEncryptionMode.html#136e2b84c94488c7f0fe4c2c781b158101a6f1542ff51301bc2f909bdcac5e92">00036</a>                 <a class="code" href="classEncryptionMode.html#136e2b84c94488c7f0fe4c2c781b158101a6f1542ff51301bc2f909bdcac5e92">CFB</a> = 3,
<a name="l00037"></a><a class="code" href="classEncryptionMode.html#136e2b84c94488c7f0fe4c2c781b1581c8bfd5ef69e4edf2cd934fd61c26d691">00037</a>                 <a class="code" href="classEncryptionMode.html#136e2b84c94488c7f0fe4c2c781b1581c8bfd5ef69e4edf2cd934fd61c26d691">NOFB</a> = 4,
<a name="l00038"></a><a class="code" href="classEncryptionMode.html#136e2b84c94488c7f0fe4c2c781b158141e9989ca9de600aee36c4c41271d331">00038</a>                 <a class="code" href="classEncryptionMode.html#136e2b84c94488c7f0fe4c2c781b158141e9989ca9de600aee36c4c41271d331">NCFB</a> = 5,
<a name="l00039"></a><a class="code" href="classEncryptionMode.html#136e2b84c94488c7f0fe4c2c781b1581ab9094135177237ba8f9e1960a02d391">00039</a>                 <a class="code" href="classEncryptionMode.html#136e2b84c94488c7f0fe4c2c781b1581ab9094135177237ba8f9e1960a02d391">CTR</a> = 6,
<a name="l00040"></a><a class="code" href="classEncryptionMode.html#136e2b84c94488c7f0fe4c2c781b158127cbbe34c17df2bbe2d7fca18fe44373">00040</a>                 <a class="code" href="classEncryptionMode.html#136e2b84c94488c7f0fe4c2c781b158127cbbe34c17df2bbe2d7fca18fe44373">STREAM</a> = 7
<a name="l00041"></a>00041         } ;
<a name="l00042"></a>00042 
<a name="l00046"></a>00046         <a class="code" href="classEncryptionMode.html#2c228ca6820b76748d84e04828e2c38c">EncryptionMode</a> (<span class="keywordtype">void</span>) ;
<a name="l00047"></a>00047         <a class="code" href="classEncryptionMode.html#2c228ca6820b76748d84e04828e2c38c">EncryptionMode</a> (<a class="code" href="classEncryptionMode.html#136e2b84c94488c7f0fe4c2c781b1581" title="integer representation of encryption mode">IRep</a> irep) ;
<a name="l00052"></a>00052         <a class="code" href="classEncryptionMode.html#2c228ca6820b76748d84e04828e2c38c">EncryptionMode</a> (std::string srep) ;
<a name="l00053"></a>00053 
<a name="l00054"></a>00054         <span class="keywordtype">void</span> <a class="code" href="classEncryptionMode.html#166b3995fdb42166bde42d52cc92a94b">setValue</a> (<a class="code" href="classEncryptionMode.html#136e2b84c94488c7f0fe4c2c781b1581" title="integer representation of encryption mode">IRep</a> irep) ;
<a name="l00055"></a>00055 
<a name="l00056"></a>00056         std::string <a class="code" href="classEncryptionMode.html#e80541a056f1157beb9b6dcf5c46d5bb">getStringRep</a> (<span class="keywordtype">void</span>) <span class="keyword">const</span> ;
<a name="l00057"></a>00057         <a class="code" href="classEncryptionMode.html#136e2b84c94488c7f0fe4c2c781b1581" title="integer representation of encryption mode">IRep</a> <a class="code" href="classEncryptionMode.html#324d904cf6eadf5a1b1c0b2f2c197582">getIntegerRep</a> (<span class="keywordtype">void</span>) <span class="keyword">const</span> ;
<a name="l00058"></a>00058 
<a name="l00059"></a><a class="code" href="classEncryptionMode.html#c8d939b6a01c65afba9afd71e55b01d7">00059</a>         <span class="keywordtype">bool</span> <a class="code" href="classEncryptionMode.html#c8d939b6a01c65afba9afd71e55b01d7">operator== </a>(<span class="keyword">const</span> <a class="code" href="classEncryptionMode.html">EncryptionMode</a>&amp; mode)<span class="keyword"> const</span>
<a name="l00060"></a>00060 <span class="keyword">                </span>{ <span class="keywordflow">return</span> (<a class="code" href="classEncryptionMode.html#4db0b0305bdd00aa7580bb6db8d4a8c3">Value</a> == mode.<a class="code" href="classEncryptionMode.html#4db0b0305bdd00aa7580bb6db8d4a8c3">Value</a>) ; } ;
<a name="l00061"></a>00061 
<a name="l00062"></a>00062         <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classEncryptionMode.html#3fe8eeb1fb6397fcb14bd7964d0a3dbf">isValidStringRep</a> (std::string srep) ;
<a name="l00063"></a>00063         <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classEncryptionMode.html#4148d3e25613ba8733bbc459805c71d0">isValidIntegerRep</a> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> irep) ;
<a name="l00064"></a>00064 
<a name="l00065"></a>00065         <span class="keyword">static</span> std::string <a class="code" href="classEncryptionMode.html#c86dd4e2d7a79f694ab5599f59cc3ba0">translate</a> (<a class="code" href="classEncryptionMode.html#136e2b84c94488c7f0fe4c2c781b1581" title="integer representation of encryption mode">IRep</a> irep) ;
<a name="l00066"></a>00066         <span class="keyword">static</span> <a class="code" href="classEncryptionMode.html#136e2b84c94488c7f0fe4c2c781b1581" title="integer representation of encryption mode">IRep</a> <a class="code" href="classEncryptionMode.html#c86dd4e2d7a79f694ab5599f59cc3ba0">translate</a> (std::string srep) ;
<a name="l00067"></a>00067 
<a name="l00068"></a>00068         <span class="keyword">private</span>:
<a name="l00069"></a><a class="code" href="classEncryptionMode.html#61a77e42fd22c95f4385eb87dbe03718">00069</a>         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classEncryptionMode.html#61a77e42fd22c95f4385eb87dbe03718">NumValues</a> = 8 ;
<a name="l00070"></a><a class="code" href="classEncryptionMode.html#4db0b0305bdd00aa7580bb6db8d4a8c3">00070</a>         <a class="code" href="classEncryptionMode.html#136e2b84c94488c7f0fe4c2c781b1581" title="integer representation of encryption mode">IRep</a> <a class="code" href="classEncryptionMode.html#4db0b0305bdd00aa7580bb6db8d4a8c3">Value</a> ;
<a name="l00071"></a>00071 
<a name="l00072"></a><a class="code" href="structEncryptionMode_1_1struct__Translation.html">00072</a>         <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structEncryptionMode_1_1struct__Translation.html">struct_Translation</a> {
<a name="l00073"></a><a class="code" href="structEncryptionMode_1_1struct__Translation.html#0ff73c861d0ca04fc5a4e23df8ccda6e">00073</a>                 <a class="code" href="classEncryptionMode.html#136e2b84c94488c7f0fe4c2c781b1581" title="integer representation of encryption mode">IRep</a>    <a class="code" href="structEncryptionMode_1_1struct__Translation.html#0ff73c861d0ca04fc5a4e23df8ccda6e">irep</a> ;
<a name="l00074"></a><a class="code" href="structEncryptionMode_1_1struct__Translation.html#b3a09dc5bcb8c6d7a30cd5e2967345dd">00074</a>                 <span class="keywordtype">char</span>*   <a class="code" href="structEncryptionMode_1_1struct__Translation.html#b3a09dc5bcb8c6d7a30cd5e2967345dd">srep</a> ;
<a name="l00075"></a>00075         } <a class="code" href="structEncryptionMode_1_1struct__Translation.html">Translation</a> ;
<a name="l00076"></a><a class="code" href="classEncryptionMode.html#3a14ae66088a1903f1488397fc36cb14">00076</a>         <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="structEncryptionMode_1_1struct__Translation.html">Translation</a> <a class="code" href="classEncryptionMode.html#3a14ae66088a1903f1488397fc36cb14">Translations</a>[] ;
<a name="l00077"></a>00077 } ;
<a name="l00078"></a>00078 
<a name="l00079"></a>00079 <span class="preprocessor">#endif // ndef SH_ENCMODE_H</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Aug 17 10:58:29 2009 for steghide by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
</body>
</html>