Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > 7c859c6f61469ed11e2ab179848b0178 > files > 70

libapr-util-devel-1.4.1-0.1mdv2010.2.i586.rpm

<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Apache Portable Runtime Utility Library: include/private/apr_crypto_internal.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.6.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="Search" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </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>Globals</span></a></li>
    </ul>
  </div>
<h1>include/private/apr_crypto_internal.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* Licensed to the Apache Software Foundation (ASF) under one or more</span>
<a name="l00002"></a>00002 <span class="comment"> * contributor license agreements.  See the NOTICE file distributed with</span>
<a name="l00003"></a>00003 <span class="comment"> * this work for additional information regarding copyright ownership.</span>
<a name="l00004"></a>00004 <span class="comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</span>
<a name="l00005"></a>00005 <span class="comment"> * (the &quot;License&quot;); you may not use this file except in compliance with</span>
<a name="l00006"></a>00006 <span class="comment"> * the License.  You may obtain a copy of the License at</span>
<a name="l00007"></a>00007 <span class="comment"> *</span>
<a name="l00008"></a>00008 <span class="comment"> *     http://www.apache.org/licenses/LICENSE-2.0</span>
<a name="l00009"></a>00009 <span class="comment"> *</span>
<a name="l00010"></a>00010 <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span>
<a name="l00011"></a>00011 <span class="comment"> * distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span>
<a name="l00012"></a>00012 <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span>
<a name="l00013"></a>00013 <span class="comment"> * See the License for the specific language governing permissions and</span>
<a name="l00014"></a>00014 <span class="comment"> * limitations under the License.</span>
<a name="l00015"></a>00015 <span class="comment"> */</span>
<a name="l00016"></a>00016 
<a name="l00017"></a>00017 <span class="preprocessor">#ifndef APR_CRYPTO_INTERNAL_H</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define APR_CRYPTO_INTERNAL_H</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span>
<a name="l00020"></a>00020 <span class="preprocessor">#include &lt;stdarg.h&gt;</span>
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 <span class="preprocessor">#include &quot;<a class="code" href="apr__crypto_8h.html" title="APR-UTIL Crypto library.">apr_crypto.h</a>&quot;</span>
<a name="l00023"></a>00023 
<a name="l00024"></a>00024 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {
<a name="l00026"></a>00026 <span class="preprocessor">#endif</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span>
<a name="l00028"></a>00028 <span class="preprocessor">#if APU_HAVE_CRYPTO</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span>
<a name="l00030"></a>00030 <span class="keyword">struct </span>apr_crypto_driver_t {
<a name="l00031"></a>00031 
<a name="l00033"></a>00033     <span class="keyword">const</span> <span class="keywordtype">char</span> *name;
<a name="l00034"></a>00034 
<a name="l00042"></a>00042     apr_status_t (*init)(apr_pool_t *pool, <span class="keyword">const</span> <span class="keywordtype">char</span> *params, <span class="keywordtype">int</span> *rc);
<a name="l00043"></a>00043 
<a name="l00056"></a>00056     apr_status_t (*make)(apr_crypto_t **f, <span class="keyword">const</span> apr_crypto_driver_t *provider,
<a name="l00057"></a>00057             <span class="keyword">const</span> <span class="keywordtype">char</span> *params, apr_pool_t *pool);
<a name="l00058"></a>00058 
<a name="l00067"></a>00067     apr_status_t (*get_block_key_types)(apr_hash_t **types,
<a name="l00068"></a>00068             <span class="keyword">const</span> apr_crypto_t *f);
<a name="l00069"></a>00069 
<a name="l00078"></a>00078     apr_status_t (*get_block_key_modes)(apr_hash_t **modes,
<a name="l00079"></a>00079             <span class="keyword">const</span> apr_crypto_t *f);
<a name="l00080"></a>00080 
<a name="l00109"></a>00109     apr_status_t (*passphrase)(apr_crypto_key_t **key, apr_size_t *ivSize,
<a name="l00110"></a>00110             <span class="keyword">const</span> <span class="keywordtype">char</span> *pass, apr_size_t passLen, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> * salt,
<a name="l00111"></a>00111             apr_size_t saltLen, <span class="keyword">const</span> apr_crypto_block_key_type_e type,
<a name="l00112"></a>00112             <span class="keyword">const</span> apr_crypto_block_key_mode_e mode, <span class="keyword">const</span> <span class="keywordtype">int</span> doPad,
<a name="l00113"></a>00113             <span class="keyword">const</span> <span class="keywordtype">int</span> iterations, <span class="keyword">const</span> apr_crypto_t *f, apr_pool_t *p);
<a name="l00114"></a>00114 
<a name="l00131"></a>00131     apr_status_t (*block_encrypt_init)(apr_crypto_block_t **ctx,
<a name="l00132"></a>00132             <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> **iv, <span class="keyword">const</span> apr_crypto_key_t *key,
<a name="l00133"></a>00133             apr_size_t *blockSize, apr_pool_t *p);
<a name="l00134"></a>00134 
<a name="l00153"></a>00153     apr_status_t (*block_encrypt)(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> **out, apr_size_t *outlen,
<a name="l00154"></a>00154             <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *in, apr_size_t inlen, apr_crypto_block_t *ctx);
<a name="l00155"></a>00155 
<a name="l00174"></a>00174     apr_status_t (*block_encrypt_finish)(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *out,
<a name="l00175"></a>00175             apr_size_t *outlen, apr_crypto_block_t *ctx);
<a name="l00176"></a>00176 
<a name="l00192"></a>00192     apr_status_t (*block_decrypt_init)(apr_crypto_block_t **ctx,
<a name="l00193"></a>00193             apr_size_t *blockSize, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *iv,
<a name="l00194"></a>00194             <span class="keyword">const</span> apr_crypto_key_t *key, apr_pool_t *p);
<a name="l00195"></a>00195 
<a name="l00214"></a>00214     apr_status_t (*block_decrypt)(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> **out, apr_size_t *outlen,
<a name="l00215"></a>00215             <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *in, apr_size_t inlen, apr_crypto_block_t *ctx);
<a name="l00216"></a>00216 
<a name="l00235"></a>00235     apr_status_t (*block_decrypt_finish)(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *out,
<a name="l00236"></a>00236             apr_size_t *outlen, apr_crypto_block_t *ctx);
<a name="l00237"></a>00237 
<a name="l00244"></a>00244     apr_status_t (*block_cleanup)(apr_crypto_block_t *ctx);
<a name="l00245"></a>00245 
<a name="l00252"></a>00252     apr_status_t (*cleanup)(apr_crypto_t *f);
<a name="l00253"></a>00253 
<a name="l00259"></a>00259     apr_status_t (*shutdown)(void);
<a name="l00260"></a>00260 
<a name="l00267"></a>00267     apr_status_t (*error)(<span class="keyword">const</span> <a class="code" href="structapu__err__t.html">apu_err_t</a> **result, <span class="keyword">const</span> apr_crypto_t *f);
<a name="l00268"></a>00268 
<a name="l00269"></a>00269 };
<a name="l00270"></a>00270 
<a name="l00271"></a>00271 <span class="preprocessor">#endif</span>
<a name="l00272"></a>00272 <span class="preprocessor"></span>
<a name="l00273"></a>00273 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00274"></a>00274 <span class="preprocessor"></span>}
<a name="l00275"></a>00275 <span class="preprocessor">#endif</span>
<a name="l00276"></a>00276 <span class="preprocessor"></span>
<a name="l00277"></a>00277 <span class="preprocessor">#endif</span>
</pre></div></div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&nbsp;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&nbsp;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&nbsp;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address style="text-align: right;"><small>Generated on Wed Feb 1 12:19:48 2012 for Apache Portable Runtime Utility Library by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>