Sophie

Sophie

distrib > Mandriva > 10.2 > i586 > media > contrib > by-pkgid > 7457b841ac8136d3a1a9d3d960c5252e > files > 1063

libcryptopp-doc-5.2.1-2mdk.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Crypto++:  TemplateTF_EncryptorImpl&lt; SCHEME_OPTIONS &gt; class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.7 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
<h1>TF_EncryptorImpl&lt; SCHEME_OPTIONS &gt; Class Template Reference</h1><code>#include &lt;<a class="el" href="pubkey_8h-source.html">pubkey.h</a>&gt;</code>
<p>
<p>Inheritance diagram for TF_EncryptorImpl&lt; SCHEME_OPTIONS &gt;:
<p><center><img src="class_t_f___encryptor_impl.png" usemap="#TF_EncryptorImpl< SCHEME_OPTIONS >_map" border="0" alt=""></center>
<map name="TF_EncryptorImpl< SCHEME_OPTIONS >_map">
<area href="class_t_f___object_impl.html" alt="TF_ObjectImpl< TF_EncryptorBase, SCHEME_OPTIONS, PublicKeyCopier< SCHEME_OPTIONS::Keys > >" shape="rect" coords="1618,616,2687,640">
<area href="class_t_f___object_impl_base.html" alt="TF_ObjectImplBase< TwoBases< TF_EncryptorBase, PublicKeyCopier< SCHEME_OPTIONS::Keys > >, SCHEME_OPTIONS, PublicKeyCopier< SCHEME_OPTIONS::Keys >::KeyClass >" shape="rect" coords="1618,560,2687,584">
<area href="class_algorithm_impl.html" alt="AlgorithmImpl< TwoBases< TF_EncryptorBase, PublicKeyCopier< SCHEME_OPTIONS::Keys > >, SCHEME_OPTIONS::AlgorithmInfo >" shape="rect" coords="1618,504,2687,528">
<area href="class_two_bases.html" alt="TwoBases< TF_EncryptorBase, PublicKeyCopier< SCHEME_OPTIONS::Keys > >" shape="rect" coords="1618,448,2687,472">
<area href="class_t_f___encryptor_base.html" alt="TF_EncryptorBase" shape="rect" coords="1079,392,2148,416">
<area href="class_public_key_copier.html" alt="PublicKeyCopier< SCHEME_OPTIONS::Keys >" shape="rect" coords="2158,392,3227,416">
<area href="class_t_f___crypto_system_base.html" alt="TF_CryptoSystemBase< PK_Encryptor, TF_Base< RandomizedTrapdoorFunction, PK_EncryptionMessageEncodingMethod > >" shape="rect" coords="1079,336,2148,360">
<area href="class_p_k___fixed_length_crypto_system_impl.html" alt="PK_FixedLengthCryptoSystemImpl< PK_Encryptor >" shape="rect" coords="539,280,1608,304">
<area href="class_t_f___base.html" alt="TF_Base< RandomizedTrapdoorFunction, PK_EncryptionMessageEncodingMethod >" shape="rect" coords="1618,280,2687,304">
<area href="class_p_k___encryptor.html" alt="PK_Encryptor" shape="rect" coords="539,224,1608,248">
<area href="class_p_k___crypto_system.html" alt="PK_CryptoSystem" shape="rect" coords="0,168,1069,192">
<area href="class_public_key_algorithm.html" alt="PublicKeyAlgorithm" shape="rect" coords="1079,168,2148,192">
<area href="class_asymmetric_algorithm.html" alt="AsymmetricAlgorithm" shape="rect" coords="1079,112,2148,136">
<area href="class_algorithm.html" alt="Algorithm" shape="rect" coords="1079,56,2148,80">
<area href="class_clonable.html" alt="Clonable" shape="rect" coords="1079,0,2148,24">
</map>
<a href="class_t_f___encryptor_impl-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
<h3>template&lt;class SCHEME_OPTIONS&gt;<br>
 class TF_EncryptorImpl&lt; SCHEME_OPTIONS &gt;</h3>

_ 
<p>

<p>
Definition at line <a class="el" href="pubkey_8h-source.html#l00477">477</a> of file <a class="el" href="pubkey_8h-source.html">pubkey.h</a>.<table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="_t_f___object_implw0" doxytag="TF_EncryptorImpl::KeyClass" ></a>
typedef <a class="el" href="class_public_key_copier.html">PublicKeyCopier</a>&lt; SCHEME_OPTIONS::Keys <br>
&gt;::KeyClass&nbsp;</td><td class="memItemRight" valign=bottom><b>KeyClass</b></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="_t_f___object_impl_ext_refw0" doxytag="TF_EncryptorImpl::SchemeOptions" ></a>
typedef SCHEME_OPTIONS&nbsp;</td><td class="memItemRight" valign=bottom><b>SchemeOptions</b></td></tr>

<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="_t_f___object_impla0" doxytag="TF_EncryptorImpl::GetKey" ></a>
const KeyClass &amp;&nbsp;</td><td class="memItemRight" valign=bottom><b>GetKey</b> () const</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="_t_f___object_impla1" doxytag="TF_EncryptorImpl::AccessKey" ></a>
KeyClass &amp;&nbsp;</td><td class="memItemRight" valign=bottom><b>AccessKey</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="_t_f___object_impla2" doxytag="TF_EncryptorImpl::CopyKeyInto" ></a>
void&nbsp;</td><td class="memItemRight" valign=bottom><b>CopyKeyInto</b> (typename SCHEME_OPTIONS::PrivateKey &amp;key) const</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="_t_f___object_impla3" doxytag="TF_EncryptorImpl::CopyKeyInto" ></a>
void&nbsp;</td><td class="memItemRight" valign=bottom><b>CopyKeyInto</b> (typename SCHEME_OPTIONS::PublicKey &amp;key) const</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="_public_key_copiera0" doxytag="TF_EncryptorImpl::CopyKeyInto" ></a>
virtual void&nbsp;</td><td class="memItemRight" valign=bottom><b>CopyKeyInto</b> (typename SCHEME_OPTIONS::Keys::PublicKey &amp;key) const=0</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="_t_f___object_impl_ext_refa4" doxytag="TF_EncryptorImpl::AccessPublicKey" ></a>
<a class="el" href="class_public_key.html">PublicKey</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><b>AccessPublicKey</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="_t_f___object_impl_ext_refa5" doxytag="TF_EncryptorImpl::GetPublicKey" ></a>
const <a class="el" href="class_public_key.html">PublicKey</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><b>GetPublicKey</b> () const</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="_t_f___object_impl_ext_refa6" doxytag="TF_EncryptorImpl::AccessPrivateKey" ></a>
<a class="el" href="class_private_key.html">PrivateKey</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><b>AccessPrivateKey</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="_t_f___object_impl_ext_refa7" doxytag="TF_EncryptorImpl::GetPrivateKey" ></a>
const <a class="el" href="class_private_key.html">PrivateKey</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><b>GetPrivateKey</b> () const</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="_t_f___object_impl_ext_refa8" doxytag="TF_EncryptorImpl::GetTrapdoorFunction" ></a>
const KeyClass &amp;&nbsp;</td><td class="memItemRight" valign=bottom><b>GetTrapdoorFunction</b> () const</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="_t_f___object_impl_ext_refa9" doxytag="TF_EncryptorImpl::NewSignatureAccumulator" ></a>
<a class="el" href="class_p_k___message_accumulator.html">PK_MessageAccumulator</a> *&nbsp;</td><td class="memItemRight" valign=bottom><b>NewSignatureAccumulator</b> (<a class="el" href="class_random_number_generator.html">RandomNumberGenerator</a> &amp;rng) const</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="_t_f___object_impl_ext_refa10" doxytag="TF_EncryptorImpl::NewVerificationAccumulator" ></a>
<a class="el" href="class_p_k___message_accumulator.html">PK_MessageAccumulator</a> *&nbsp;</td><td class="memItemRight" valign=bottom><b>NewVerificationAccumulator</b> () const</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="_algorithm_impla0" doxytag="TF_EncryptorImpl::AlgorithmName" ></a>
std::string&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_algorithm_impl.html#_algorithm_impla0">AlgorithmName</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">returns name of this algorithm, not universally implemented yet <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_t_f___encryptor_base.html#_two_bases_3_01_t_f___encryptor_base_00_01_public_key_copier_3_01_s_c_h_e_m_e___o_p_t_i_o_n_s_1_1_keys_01_4_01_4a0">Encrypt</a> (<a class="el" href="class_random_number_generator.html">RandomNumberGenerator</a> &amp;rng, const byte *plaintext, unsigned int plaintextLength, byte *ciphertext, const <a class="el" href="class_name_value_pairs.html">NameValuePairs</a> &amp;parameters=<a class="el" href="cryptlib_8h.html#a3">g_nullNameValuePairs</a>) const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">encrypt a byte string  <a href="#_two_bases_3_01_t_f___encryptor_base_00_01_public_key_copier_3_01_s_c_h_e_m_e___o_p_t_i_o_n_s_1_1_keys_01_4_01_4a0"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_t_f___crypto_system_base.html#_t_f___crypto_system_basea0">ParameterSupported</a> (const char *name) const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">this object supports the use of the parameter with the given name  <a href="#_t_f___crypto_system_basea0"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="_t_f___crypto_system_basea1" doxytag="TF_EncryptorImpl::FixedMaxPlaintextLength" ></a>
unsigned int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_t_f___crypto_system_base.html#_t_f___crypto_system_basea1">FixedMaxPlaintextLength</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">return maximum plaintext length given the fixed ciphertext length, if one exists, otherwise return 0 <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>unsigned int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_t_f___crypto_system_base.html#_t_f___crypto_system_basea2">FixedCiphertextLength</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">return fixed ciphertext length, if one exists, otherwise return 0  <a href="#_t_f___crypto_system_basea2"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>unsigned int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_p_k___fixed_length_crypto_system_impl.html#_p_k___fixed_length_crypto_system_impla0">MaxPlaintextLength</a> (unsigned int ciphertextLength) const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">maximum length of plaintext for a given ciphertext length  <a href="#_p_k___fixed_length_crypto_system_impla0"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>unsigned int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_p_k___fixed_length_crypto_system_impl.html#_p_k___fixed_length_crypto_system_impla1">CiphertextLength</a> (unsigned int plaintextLength) const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">calculate length of ciphertext given length of plaintext  <a href="#_p_k___fixed_length_crypto_system_impla1"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="class_buffered_transformation.html">BufferedTransformation</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_p_k___encryptor.html#_two_bases_3_01_t_f___encryptor_base_00_01_public_key_copier_3_01_s_c_h_e_m_e___o_p_t_i_o_n_s_1_1_keys_01_4_01_4a6">CreateEncryptionFilter</a> (<a class="el" href="class_random_number_generator.html">RandomNumberGenerator</a> &amp;rng, <a class="el" href="class_buffered_transformation.html">BufferedTransformation</a> *attachment=NULL, const <a class="el" href="class_name_value_pairs.html">NameValuePairs</a> &amp;parameters=<a class="el" href="cryptlib_8h.html#a3">g_nullNameValuePairs</a>) const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">create a new encryption filter  <a href="#_two_bases_3_01_t_f___encryptor_base_00_01_public_key_copier_3_01_s_c_h_e_m_e___o_p_t_i_o_n_s_1_1_keys_01_4_01_4a6"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="_two_bases_3_01_t_f___verifier_base_00_01_public_key_copier_3_01_s_c_h_e_m_e___o_p_t_i_o_n_s_1_1_keys_01_4_01_4a16" doxytag="TF_EncryptorImpl::AccessMaterial" ></a>
<a class="el" href="class_crypto_material.html">CryptoMaterial</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_public_key_algorithm.html#_two_bases_3_01_t_f___verifier_base_00_01_public_key_copier_3_01_s_c_h_e_m_e___o_p_t_i_o_n_s_1_1_keys_01_4_01_4a16">AccessMaterial</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">returns a reference to the crypto material used by this object <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="_two_bases_3_01_t_f___verifier_base_00_01_public_key_copier_3_01_s_c_h_e_m_e___o_p_t_i_o_n_s_1_1_keys_01_4_01_4a17" doxytag="TF_EncryptorImpl::GetMaterial" ></a>
const <a class="el" href="class_crypto_material.html">CryptoMaterial</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_public_key_algorithm.html#_two_bases_3_01_t_f___verifier_base_00_01_public_key_copier_3_01_s_c_h_e_m_e___o_p_t_i_o_n_s_1_1_keys_01_4_01_4a17">GetMaterial</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">returns a const reference to the crypto material used by this object <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="_x_t_r___d_ha24" doxytag="TF_EncryptorImpl::BERDecode" ></a>
void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_asymmetric_algorithm.html#_x_t_r___d_ha24">BERDecode</a> (<a class="el" href="class_buffered_transformation.html">BufferedTransformation</a> &amp;bt)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">for backwards compatibility, calls <a class="el" href="class_asymmetric_algorithm.html#_asymmetric_algorithma0">AccessMaterial()</a>.Load(bt) <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="_two_bases_3_01_t_f___verifier_base_00_01_public_key_copier_3_01_s_c_h_e_m_e___o_p_t_i_o_n_s_1_1_keys_01_4_01_4a21" doxytag="TF_EncryptorImpl::DEREncode" ></a>
void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_asymmetric_algorithm.html#_two_bases_3_01_t_f___verifier_base_00_01_public_key_copier_3_01_s_c_h_e_m_e___o_p_t_i_o_n_s_1_1_keys_01_4_01_4a21">DEREncode</a> (<a class="el" href="class_buffered_transformation.html">BufferedTransformation</a> &amp;bt) const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">for backwards compatibility, calls GetMaterial().Save(bt) <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="_zlib_decompressora18" doxytag="TF_EncryptorImpl::Clone" ></a>
virtual <a class="el" href="class_clonable.html">Clonable</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_clonable.html#_zlib_decompressora18">Clone</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">this is not implemented by most classes yet <br><br></td></tr>
<tr><td colspan=2><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="_algorithm_imple0" doxytag="TF_EncryptorImpl::StaticAlgorithmName" ></a>
std::string&nbsp;</td><td class="memItemRight" valign=bottom><b>StaticAlgorithmName</b> ()</td></tr>

<tr><td colspan=2><br><h2>Protected Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="_t_f___basex0" doxytag="TF_EncryptorImpl::TrapdoorFunctionInterface" ></a>
typedef <a class="el" href="class_randomized_trapdoor_function.html">RandomizedTrapdoorFunction</a>&nbsp;</td><td class="memItemRight" valign=bottom><b>TrapdoorFunctionInterface</b></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="_t_f___basex1" doxytag="TF_EncryptorImpl::MessageEncodingInterface" ></a>
typedef <a class="el" href="class_p_k___encryption_message_encoding_method.html">PK_EncryptionMessageEncodingMethod</a>&nbsp;</td><td class="memItemRight" valign=bottom><b>MessageEncodingInterface</b></td></tr>

<tr><td colspan=2><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="_t_f___object_impl_ext_refb0" doxytag="TF_EncryptorImpl::GetMessageEncodingInterface" ></a>
const <a class="el" href="class_two_bases.html">TwoBases</a>&lt; <a class="el" href="class_t_f___encryptor_base.html">TF_EncryptorBase</a>,<br>
 <a class="el" href="class_public_key_copier.html">PublicKeyCopier</a>&lt; SCHEME_OPTIONS::Keys <br>
&gt; &gt;::MessageEncodingInterface &amp;&nbsp;</td><td class="memItemRight" valign=bottom><b>GetMessageEncodingInterface</b> () const</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="_t_f___object_impl_ext_refb1" doxytag="TF_EncryptorImpl::GetTrapdoorFunctionBounds" ></a>
const <a class="el" href="class_trapdoor_function_bounds.html">TrapdoorFunctionBounds</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><b>GetTrapdoorFunctionBounds</b> () const</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="_t_f___object_impl_ext_refb2" doxytag="TF_EncryptorImpl::GetTrapdoorFunctionInterface" ></a>
const <a class="el" href="class_two_bases.html">TwoBases</a>&lt; <a class="el" href="class_t_f___encryptor_base.html">TF_EncryptorBase</a>,<br>
 <a class="el" href="class_public_key_copier.html">PublicKeyCopier</a>&lt; SCHEME_OPTIONS::Keys <br>
&gt; &gt;::TrapdoorFunctionInterface &amp;&nbsp;</td><td class="memItemRight" valign=bottom><b>GetTrapdoorFunctionInterface</b> () const</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="_t_f___object_impl_ext_refb3" doxytag="TF_EncryptorImpl::GetHashIdentifier" ></a>
HashIdentifier&nbsp;</td><td class="memItemRight" valign=bottom><b>GetHashIdentifier</b> () const</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="_t_f___object_impl_ext_refb4" doxytag="TF_EncryptorImpl::GetDigestSize" ></a>
unsigned int&nbsp;</td><td class="memItemRight" valign=bottom><b>GetDigestSize</b> () const</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="_t_f___crypto_system_baseb0" doxytag="TF_EncryptorImpl::PaddedBlockByteLength" ></a>
unsigned int&nbsp;</td><td class="memItemRight" valign=bottom><b>PaddedBlockByteLength</b> () const</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="_t_f___crypto_system_baseb1" doxytag="TF_EncryptorImpl::PaddedBlockBitLength" ></a>
unsigned int&nbsp;</td><td class="memItemRight" valign=bottom><b>PaddedBlockBitLength</b> () const</td></tr>

</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="_two_bases_3_01_t_f___encryptor_base_00_01_public_key_copier_3_01_s_c_h_e_m_e___o_p_t_i_o_n_s_1_1_keys_01_4_01_4a0" doxytag="TF_EncryptorImpl::Encrypt" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void TF_EncryptorBase::Encrypt           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="class_random_number_generator.html">RandomNumberGenerator</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>rng</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const byte *&nbsp;</td>
          <td class="mdname" nowrap> <em>plaintext</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>unsigned int&nbsp;</td>
          <td class="mdname" nowrap> <em>plaintextLength</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>byte *&nbsp;</td>
          <td class="mdname" nowrap> <em>ciphertext</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="class_name_value_pairs.html">NameValuePairs</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>parameters</em> = <code><a class="el" href="cryptlib_8h.html#a3">g_nullNameValuePairs</a></code></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"> const<code> [virtual, inherited]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
encrypt a byte string 
<p>
<dl compact><dt><b>Precondition:</b></dt><dd><a class="el" href="class_p_k___crypto_system.html#_p_k___encryptora3">CiphertextLength(plaintextLength)</a> != 0 (i.e., plaintext isn't too long) <p>
size of ciphertext == <a class="el" href="class_p_k___crypto_system.html#_p_k___encryptora3">CiphertextLength(plaintextLength)</a></dd></dl>

<p>
Implements <a class="el" href="class_p_k___encryptor.html#_t_f___crypto_system_base_3_01_p_k___encryptor_00_01_t_f___base_3_01_randomized_trapdoor_function_00_01_p_k___encryption_message_encoding_method_01_4_01_4a5">PK_Encryptor</a>.
<p>
Definition at line <a class="el" href="pubkey_8cpp-source.html#l00116">116</a> of file <a class="el" href="pubkey_8cpp-source.html">pubkey.cpp</a>.
<p>
References <a class="el" href="cryptlib_8h-source.html#l00346">Algorithm::AlgorithmName()</a>, <a class="el" href="pubkey_8cpp-source.html#l00116">TF_EncryptorBase::Encrypt()</a>, <a class="el" href="cryptlib_8h-source.html#l01129">PK_CryptoSystem::FixedCiphertextLength()</a>, <a class="el" href="cryptlib_8h-source.html#l01132">PK_CryptoSystem::FixedMaxPlaintextLength()</a>, and <a class="el" href="secblock_8h-source.html#l00274">SecBlock&lt; T, A &gt;::size()</a>.
<p>
Referenced by <a class="el" href="pubkey_8cpp-source.html#l00116">TF_EncryptorBase::Encrypt()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="_t_f___crypto_system_basea0" doxytag="TF_EncryptorImpl::ParameterSupported" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool <a class="el" href="class_t_f___crypto_system_base.html">TF_CryptoSystemBase</a>&lt; <a class="el" href="class_p_k___encryptor.html">PK_Encryptor</a> , <a class="el" href="class_t_f___base.html">TF_Base</a>&lt; <a class="el" href="class_randomized_trapdoor_function.html">RandomizedTrapdoorFunction</a>, <a class="el" href="class_p_k___encryption_message_encoding_method.html">PK_EncryptionMessageEncodingMethod</a> &gt;  &gt;::ParameterSupported           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const char *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>name</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [inline, virtual, inherited]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Implements <a class="el" href="class_p_k___crypto_system.html#_p_k___fixed_length_crypto_system_impl_3_01_p_k___encryptor_01_4a6">PK_CryptoSystem</a>.
<p>
Definition at line <a class="el" href="pubkey_8h-source.html#l00156">156</a> of file <a class="el" href="pubkey_8h-source.html">pubkey.h</a>.    </td>
  </tr>
</table>
<a class="anchor" name="_t_f___crypto_system_basea2" doxytag="TF_EncryptorImpl::FixedCiphertextLength" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> unsigned int <a class="el" href="class_t_f___crypto_system_base.html">TF_CryptoSystemBase</a>&lt; <a class="el" href="class_p_k___encryptor.html">PK_Encryptor</a> , <a class="el" href="class_t_f___base.html">TF_Base</a>&lt; <a class="el" href="class_randomized_trapdoor_function.html">RandomizedTrapdoorFunction</a>, <a class="el" href="class_p_k___encryption_message_encoding_method.html">PK_EncryptionMessageEncodingMethod</a> &gt;  &gt;::FixedCiphertextLength           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [inline, virtual, inherited]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Implements <a class="el" href="class_p_k___fixed_length_crypto_system_impl.html">PK_FixedLengthCryptoSystemImpl&lt; PK_Encryptor &gt;</a>.
<p>
Definition at line <a class="el" href="pubkey_8h-source.html#l00158">158</a> of file <a class="el" href="pubkey_8h-source.html">pubkey.h</a>.    </td>
  </tr>
</table>
<a class="anchor" name="_p_k___fixed_length_crypto_system_impla0" doxytag="TF_EncryptorImpl::MaxPlaintextLength" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> unsigned int <a class="el" href="class_p_k___fixed_length_crypto_system_impl.html">PK_FixedLengthCryptoSystemImpl</a>&lt; <a class="el" href="class_p_k___encryptor.html">PK_Encryptor</a>  &gt;::MaxPlaintextLength           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">unsigned int&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>ciphertextLength</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [inline, virtual, inherited]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Implements <a class="el" href="class_p_k___crypto_system.html#_p_k___encryptora2">PK_CryptoSystem</a>.
<p>
Definition at line <a class="el" href="pubkey_8h-source.html#l00142">142</a> of file <a class="el" href="pubkey_8h-source.html">pubkey.h</a>.    </td>
  </tr>
</table>
<a class="anchor" name="_p_k___fixed_length_crypto_system_impla1" doxytag="TF_EncryptorImpl::CiphertextLength" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> unsigned int <a class="el" href="class_p_k___fixed_length_crypto_system_impl.html">PK_FixedLengthCryptoSystemImpl</a>&lt; <a class="el" href="class_p_k___encryptor.html">PK_Encryptor</a>  &gt;::CiphertextLength           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">unsigned int&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>plaintextLength</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [inline, virtual, inherited]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Implements <a class="el" href="class_p_k___crypto_system.html#_p_k___encryptora3">PK_CryptoSystem</a>.
<p>
Definition at line <a class="el" href="pubkey_8h-source.html#l00144">144</a> of file <a class="el" href="pubkey_8h-source.html">pubkey.h</a>.    </td>
  </tr>
</table>
<a class="anchor" name="_two_bases_3_01_t_f___encryptor_base_00_01_public_key_copier_3_01_s_c_h_e_m_e___o_p_t_i_o_n_s_1_1_keys_01_4_01_4a6" doxytag="TF_EncryptorImpl::CreateEncryptionFilter" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="class_buffered_transformation.html">BufferedTransformation</a> * PK_Encryptor::CreateEncryptionFilter           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="class_random_number_generator.html">RandomNumberGenerator</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>rng</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="class_buffered_transformation.html">BufferedTransformation</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>attachment</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="class_name_value_pairs.html">NameValuePairs</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>parameters</em> = <code><a class="el" href="cryptlib_8h.html#a3">g_nullNameValuePairs</a></code></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"> const<code> [virtual, inherited]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
create a new encryption filter 
<p>
<dl compact><dt><b>Note:</b></dt><dd>The caller is responsible for deleting the returned pointer. <p>
Encoding parameters should be passed in the "EP" channel.</dd></dl>

<p>
Definition at line <a class="el" href="cryptlib_8cpp-source.html#l00564">564</a> of file <a class="el" href="cryptlib_8cpp-source.html">cryptlib.cpp</a>.
<p>
References <a class="el" href="cryptlib_8cpp-source.html#l00564">PK_Encryptor::CreateEncryptionFilter()</a>.
<p>
Referenced by <a class="el" href="cryptlib_8cpp-source.html#l00564">PK_Encryptor::CreateEncryptionFilter()</a>.    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="pubkey_8h-source.html">pubkey.h</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Sun Nov 7 08:24:10 2004 for Crypto++ by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.7 </small></address>
</body>
</html>