<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.15"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>Crypto++: TF_DecryptorBase Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">Crypto++  <span id="projectnumber">7.0</span> </div> <div id="projectbrief">Free C++ class library of cryptographic schemes</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.15 --> <script type="text/javascript" src="menudata.js"></script> <script type="text/javascript" src="menu.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(function() { initMenu('',false,false,'search.php','Search'); }); /* @license-end */</script> <div id="main-nav"></div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="class_t_f___decryptor_base-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">TF_DecryptorBase Class Reference</div> </div> </div><!--header--> <div class="contents"> <p>Trapdoor function cryptosystems decryption base class. <a href="class_t_f___decryptor_base.html#details">More...</a></p> <div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;"> <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for TF_DecryptorBase:</div> <div id="dynsection-0-summary" class="dynsummary" style="display:block;"> </div> <div id="dynsection-0-content" class="dyncontent" style="display:none;"> <div class="center"> <img src="class_t_f___decryptor_base.png" usemap="#TF_5FDecryptorBase_map" alt=""/> <map id="TF_5FDecryptorBase_map" name="TF_5FDecryptorBase_map"> <area href="class_t_f___crypto_system_base.html" alt="TF_CryptoSystemBase< PK_Decryptor, TF_Base< TrapdoorFunctionInverse, PK_EncryptionMessageEncodingMethod > >" shape="rect" coords="719,336,1428,360"/> <area href="class_p_k___fixed_length_crypto_system_impl.html" alt="PK_FixedLengthCryptoSystemImpl< PK_Decryptor >" shape="rect" coords="359,280,1068,304"/> <area href="class_t_f___base.html" alt="TF_Base< TrapdoorFunctionInverse, PK_EncryptionMessageEncodingMethod >" shape="rect" coords="1078,280,1787,304"/> <area href="class_p_k___decryptor.html" title="Interface for public-key decryptors." alt="PK_Decryptor" shape="rect" coords="359,224,1068,248"/> <area href="class_p_k___crypto_system.html" title="Interface for public-key encryptors and decryptors." alt="PK_CryptoSystem" shape="rect" coords="0,168,709,192"/> <area href="class_private_key_algorithm.html" title="Interface for asymmetric algorithms using private keys." alt="PrivateKeyAlgorithm" shape="rect" coords="719,168,1428,192"/> <area href="class_asymmetric_algorithm.html" title="Interface for asymmetric algorithms." alt="AsymmetricAlgorithm" shape="rect" coords="719,112,1428,136"/> <area href="class_algorithm.html" title="Interface for all crypto algorithms." alt="Algorithm" shape="rect" coords="719,56,1428,80"/> <area href="class_clonable.html" title="Interface for cloning objects." alt="Clonable" shape="rect" coords="719,0,1428,24"/> <area href="class_algorithm_impl.html" alt="AlgorithmImpl< TF_DecryptorBase, SCHEME_OPTIONS::AlgorithmInfo >" shape="rect" coords="719,448,1428,472"/> <area href="class_t_f___object_impl_base.html" alt="TF_ObjectImplBase< TF_DecryptorBase, SCHEME_OPTIONS, SCHEME_OPTIONS::PrivateKey >" shape="rect" coords="719,504,1428,528"/> <area href="class_t_f___object_impl.html" alt="TF_ObjectImpl< TF_DecryptorBase, SCHEME_OPTIONS, SCHEME_OPTIONS::PrivateKey >" shape="rect" coords="719,560,1428,584"/> <area href="class_t_f___decryptor_impl.html" title="Trapdoor Function (TF) decryptor options." alt="TF_DecryptorImpl< SCHEME_OPTIONS >" shape="rect" coords="719,616,1428,640"/> </map> </div></div> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr class="memitem:ab013c5ab13f90882f68bf065bd27fbed"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_decoding_result.html">DecodingResult</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_f___decryptor_base.html#ab013c5ab13f90882f68bf065bd27fbed">Decrypt</a> (<a class="el" href="class_random_number_generator.html">RandomNumberGenerator</a> &rng, const byte *ciphertext, size_t ciphertextLength, byte *plaintext, const <a class="el" href="class_name_value_pairs.html">NameValuePairs</a> &parameters=<a class="el" href="cryptlib_8h.html#a04be65ada92ccb1e6aac0d94b4cc394b">g_nullNameValuePairs</a>) const</td></tr> <tr class="memdesc:ab013c5ab13f90882f68bf065bd27fbed"><td class="mdescLeft"> </td><td class="mdescRight">Decrypt a byte string. <a href="#ab013c5ab13f90882f68bf065bd27fbed">More...</a><br /></td></tr> <tr class="separator:ab013c5ab13f90882f68bf065bd27fbed"><td class="memSeparator" colspan="2"> </td></tr> <tr class="inherit_header pub_methods_class_t_f___crypto_system_base"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_t_f___crypto_system_base')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="class_t_f___crypto_system_base.html">TF_CryptoSystemBase< PK_Decryptor, TF_Base< TrapdoorFunctionInverse, PK_EncryptionMessageEncodingMethod > ></a></td></tr> <tr class="memitem:afadb2febf4b1a51ee1446fb01da2f9e8 inherit pub_methods_class_t_f___crypto_system_base"><td class="memItemLeft" align="right" valign="top"><a id="afadb2febf4b1a51ee1446fb01da2f9e8"></a> bool </td><td class="memItemRight" valign="bottom"><b>ParameterSupported</b> (const char *name) const</td></tr> <tr class="separator:afadb2febf4b1a51ee1446fb01da2f9e8 inherit pub_methods_class_t_f___crypto_system_base"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aa0a7da5ba5b3869059410425b9ea8fe2 inherit pub_methods_class_t_f___crypto_system_base"><td class="memItemLeft" align="right" valign="top"><a id="aa0a7da5ba5b3869059410425b9ea8fe2"></a> size_t </td><td class="memItemRight" valign="bottom"><b>FixedMaxPlaintextLength</b> () const</td></tr> <tr class="separator:aa0a7da5ba5b3869059410425b9ea8fe2 inherit pub_methods_class_t_f___crypto_system_base"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ac11857dd4d28e5f6bdebd16fb8742d12 inherit pub_methods_class_t_f___crypto_system_base"><td class="memItemLeft" align="right" valign="top"><a id="ac11857dd4d28e5f6bdebd16fb8742d12"></a> size_t </td><td class="memItemRight" valign="bottom"><b>FixedCiphertextLength</b> () const</td></tr> <tr class="separator:ac11857dd4d28e5f6bdebd16fb8742d12 inherit pub_methods_class_t_f___crypto_system_base"><td class="memSeparator" colspan="2"> </td></tr> <tr class="inherit_header pub_methods_class_p_k___fixed_length_crypto_system_impl"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_p_k___fixed_length_crypto_system_impl')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="class_p_k___fixed_length_crypto_system_impl.html">PK_FixedLengthCryptoSystemImpl< PK_Decryptor ></a></td></tr> <tr class="memitem:a611f362906abdf24520dc5997ed8dbad inherit pub_methods_class_p_k___fixed_length_crypto_system_impl"><td class="memItemLeft" align="right" valign="top"><a id="a611f362906abdf24520dc5997ed8dbad"></a> size_t </td><td class="memItemRight" valign="bottom"><b>MaxPlaintextLength</b> (size_t ciphertextLength) const</td></tr> <tr class="separator:a611f362906abdf24520dc5997ed8dbad inherit pub_methods_class_p_k___fixed_length_crypto_system_impl"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a5c97d64f1d84001c1e1c2fd725204853 inherit pub_methods_class_p_k___fixed_length_crypto_system_impl"><td class="memItemLeft" align="right" valign="top"><a id="a5c97d64f1d84001c1e1c2fd725204853"></a> size_t </td><td class="memItemRight" valign="bottom"><b>CiphertextLength</b> (size_t plaintextLength) const</td></tr> <tr class="separator:a5c97d64f1d84001c1e1c2fd725204853 inherit pub_methods_class_p_k___fixed_length_crypto_system_impl"><td class="memSeparator" colspan="2"> </td></tr> <tr class="inherit_header pub_methods_class_p_k___decryptor"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_p_k___decryptor')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="class_p_k___decryptor.html">PK_Decryptor</a></td></tr> <tr class="memitem:ac98bd1dac38f73bdc7d0930053ce9f56 inherit pub_methods_class_p_k___decryptor"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_buffered_transformation.html">BufferedTransformation</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_k___decryptor.html#ac98bd1dac38f73bdc7d0930053ce9f56">CreateDecryptionFilter</a> (<a class="el" href="class_random_number_generator.html">RandomNumberGenerator</a> &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> &parameters=<a class="el" href="cryptlib_8h.html#a04be65ada92ccb1e6aac0d94b4cc394b">g_nullNameValuePairs</a>) const</td></tr> <tr class="memdesc:ac98bd1dac38f73bdc7d0930053ce9f56 inherit pub_methods_class_p_k___decryptor"><td class="mdescLeft"> </td><td class="mdescRight">Create a new decryption filter. <a href="class_p_k___decryptor.html#ac98bd1dac38f73bdc7d0930053ce9f56">More...</a><br /></td></tr> <tr class="separator:ac98bd1dac38f73bdc7d0930053ce9f56 inherit pub_methods_class_p_k___decryptor"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a6cdadc344ea0cc9804fded094f7b514a inherit pub_methods_class_p_k___decryptor"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_decoding_result.html">DecodingResult</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_k___decryptor.html#a6cdadc344ea0cc9804fded094f7b514a">FixedLengthDecrypt</a> (<a class="el" href="class_random_number_generator.html">RandomNumberGenerator</a> &rng, const byte *ciphertext, byte *plaintext, const <a class="el" href="class_name_value_pairs.html">NameValuePairs</a> &parameters=<a class="el" href="cryptlib_8h.html#a04be65ada92ccb1e6aac0d94b4cc394b">g_nullNameValuePairs</a>) const</td></tr> <tr class="memdesc:a6cdadc344ea0cc9804fded094f7b514a inherit pub_methods_class_p_k___decryptor"><td class="mdescLeft"> </td><td class="mdescRight">Decrypt a fixed size ciphertext. <a href="class_p_k___decryptor.html#a6cdadc344ea0cc9804fded094f7b514a">More...</a><br /></td></tr> <tr class="separator:a6cdadc344ea0cc9804fded094f7b514a inherit pub_methods_class_p_k___decryptor"><td class="memSeparator" colspan="2"> </td></tr> <tr class="inherit_header pub_methods_class_private_key_algorithm"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_private_key_algorithm')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="class_private_key_algorithm.html">PrivateKeyAlgorithm</a></td></tr> <tr class="memitem:a48cf4528f16263f2200d5b908a0b8ffb inherit pub_methods_class_private_key_algorithm"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_crypto_material.html">CryptoMaterial</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_private_key_algorithm.html#a48cf4528f16263f2200d5b908a0b8ffb">AccessMaterial</a> ()</td></tr> <tr class="memdesc:a48cf4528f16263f2200d5b908a0b8ffb inherit pub_methods_class_private_key_algorithm"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves a reference to a Private Key. <a href="class_private_key_algorithm.html#a48cf4528f16263f2200d5b908a0b8ffb">More...</a><br /></td></tr> <tr class="separator:a48cf4528f16263f2200d5b908a0b8ffb inherit pub_methods_class_private_key_algorithm"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a59f3867165685cc6ac6be3f53d5f371b inherit pub_methods_class_private_key_algorithm"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="class_crypto_material.html">CryptoMaterial</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_private_key_algorithm.html#a59f3867165685cc6ac6be3f53d5f371b">GetMaterial</a> () const</td></tr> <tr class="memdesc:a59f3867165685cc6ac6be3f53d5f371b inherit pub_methods_class_private_key_algorithm"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves a reference to a Private Key. <a href="class_private_key_algorithm.html#a59f3867165685cc6ac6be3f53d5f371b">More...</a><br /></td></tr> <tr class="separator:a59f3867165685cc6ac6be3f53d5f371b inherit pub_methods_class_private_key_algorithm"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ae2085815947c2ae7b3f9f614612e0c17 inherit pub_methods_class_private_key_algorithm"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_private_key.html">PrivateKey</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_private_key_algorithm.html#ae2085815947c2ae7b3f9f614612e0c17">AccessPrivateKey</a> ()=0</td></tr> <tr class="memdesc:ae2085815947c2ae7b3f9f614612e0c17 inherit pub_methods_class_private_key_algorithm"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves a reference to a Private Key. <a href="class_private_key_algorithm.html#ae2085815947c2ae7b3f9f614612e0c17">More...</a><br /></td></tr> <tr class="separator:ae2085815947c2ae7b3f9f614612e0c17 inherit pub_methods_class_private_key_algorithm"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ab36fe7af04ef624d38c0c06da5b89bb4 inherit pub_methods_class_private_key_algorithm"><td class="memItemLeft" align="right" valign="top">virtual const <a class="el" href="class_private_key.html">PrivateKey</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_private_key_algorithm.html#ab36fe7af04ef624d38c0c06da5b89bb4">GetPrivateKey</a> () const</td></tr> <tr class="memdesc:ab36fe7af04ef624d38c0c06da5b89bb4 inherit pub_methods_class_private_key_algorithm"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves a reference to a Private Key. <a href="class_private_key_algorithm.html#ab36fe7af04ef624d38c0c06da5b89bb4">More...</a><br /></td></tr> <tr class="separator:ab36fe7af04ef624d38c0c06da5b89bb4 inherit pub_methods_class_private_key_algorithm"><td class="memSeparator" colspan="2"> </td></tr> <tr class="inherit_header pub_methods_class_algorithm"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_algorithm')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="class_algorithm.html">Algorithm</a></td></tr> <tr class="memitem:a1c77f5117ca2cd881baf26a364cfc606 inherit pub_methods_class_algorithm"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_algorithm.html#a1c77f5117ca2cd881baf26a364cfc606">Algorithm</a> (bool checkSelfTestStatus=true)</td></tr> <tr class="memdesc:a1c77f5117ca2cd881baf26a364cfc606 inherit pub_methods_class_algorithm"><td class="mdescLeft"> </td><td class="mdescRight">Interface for all crypto algorithms. <a href="class_algorithm.html#a1c77f5117ca2cd881baf26a364cfc606">More...</a><br /></td></tr> <tr class="separator:a1c77f5117ca2cd881baf26a364cfc606 inherit pub_methods_class_algorithm"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a4f31510a192d1121856efe8ad0a9b844 inherit pub_methods_class_algorithm"><td class="memItemLeft" align="right" valign="top">virtual std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="class_algorithm.html#a4f31510a192d1121856efe8ad0a9b844">AlgorithmName</a> () const</td></tr> <tr class="memdesc:a4f31510a192d1121856efe8ad0a9b844 inherit pub_methods_class_algorithm"><td class="mdescLeft"> </td><td class="mdescRight">Provides the name of this algorithm. <a href="class_algorithm.html#a4f31510a192d1121856efe8ad0a9b844">More...</a><br /></td></tr> <tr class="separator:a4f31510a192d1121856efe8ad0a9b844 inherit pub_methods_class_algorithm"><td class="memSeparator" colspan="2"> </td></tr> <tr class="inherit_header pub_methods_class_clonable"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_clonable')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="class_clonable.html">Clonable</a></td></tr> <tr class="memitem:ad0016ba2d505c23aa85aad49e6c19bb7 inherit pub_methods_class_clonable"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_clonable.html">Clonable</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_clonable.html#ad0016ba2d505c23aa85aad49e6c19bb7">Clone</a> () const</td></tr> <tr class="memdesc:ad0016ba2d505c23aa85aad49e6c19bb7 inherit pub_methods_class_clonable"><td class="mdescLeft"> </td><td class="mdescRight">Copies this object. <a href="class_clonable.html#ad0016ba2d505c23aa85aad49e6c19bb7">More...</a><br /></td></tr> <tr class="separator:ad0016ba2d505c23aa85aad49e6c19bb7 inherit pub_methods_class_clonable"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>Trapdoor function cryptosystems decryption base class. </p> <p class="definition">Definition at line <a class="el" href="pubkey_8h_source.html#l00283">283</a> of file <a class="el" href="pubkey_8h_source.html">pubkey.h</a>.</p> </div><h2 class="groupheader">Member Function Documentation</h2> <a id="ab013c5ab13f90882f68bf065bd27fbed"></a> <h2 class="memtitle"><span class="permalink"><a href="#ab013c5ab13f90882f68bf065bd27fbed">◆ </a></span>Decrypt()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="struct_decoding_result.html">DecodingResult</a> TF_DecryptorBase::Decrypt </td> <td>(</td> <td class="paramtype"><a class="el" href="class_random_number_generator.html">RandomNumberGenerator</a> & </td> <td class="paramname"><em>rng</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const byte * </td> <td class="paramname"><em>ciphertext</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">size_t </td> <td class="paramname"><em>ciphertextLength</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">byte * </td> <td class="paramname"><em>plaintext</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="class_name_value_pairs.html">NameValuePairs</a> & </td> <td class="paramname"><em>parameters</em> = <code><a class="el" href="cryptlib_8h.html#a04be65ada92ccb1e6aac0d94b4cc394b">g_nullNameValuePairs</a></code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Decrypt a byte string. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">rng</td><td>a <a class="el" href="class_random_number_generator.html" title="Interface for random number generators.">RandomNumberGenerator</a> derived class </td></tr> <tr><td class="paramname">ciphertext</td><td>the encrypted byte buffer </td></tr> <tr><td class="paramname">ciphertextLength</td><td>the size of the encrypted byte buffer </td></tr> <tr><td class="paramname">plaintext</td><td>a byte buffer to hold the decrypted string </td></tr> <tr><td class="paramname">parameters</td><td>a set of <a class="el" href="class_name_value_pairs.html" title="Interface for retrieving values given their names.">NameValuePairs</a> to initialize this object </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>the result of the decryption operation</dd></dl> <p>If <a class="el" href="struct_decoding_result.html#ab88062318cd0e68b3061db351d3ba34d" title="Flag to indicate the decoding is valid.">DecodingResult::isValidCoding</a> is true, then <a class="el" href="struct_decoding_result.html#af4496c82e5764175a27e36629e1cded7" title="Recovered message length if isValidCoding is true, undefined otherwise.">DecodingResult::messageLength</a> is valid and holds the the actual length of the plaintext recovered. The result is undefined if decryption failed. If <a class="el" href="struct_decoding_result.html#ab88062318cd0e68b3061db351d3ba34d" title="Flag to indicate the decoding is valid.">DecodingResult::isValidCoding</a> is false, then <a class="el" href="struct_decoding_result.html#af4496c82e5764175a27e36629e1cded7" title="Recovered message length if isValidCoding is true, undefined otherwise.">DecodingResult::messageLength</a> is undefined. </p><dl class="section pre"><dt>Precondition</dt><dd><code><a class="el" href="misc_8h.html#a2d7e4464ea73d6393ebe78f952253426" title="Counts elements in an array.">COUNTOF(plaintext)</a> == MaxPlaintextLength(ciphertextLength)</code> ensures the output byte buffer is large enough </dd></dl> <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_p_k___encryptor.html" title="Interface for public-key encryptors.">PK_Encryptor</a> </dd></dl> <p>Implements <a class="el" href="class_p_k___decryptor.html#ab7466675ed050c440c16508f8a88cac1">PK_Decryptor</a>.</p> <p class="definition">Definition at line <a class="el" href="pubkey_8cpp_source.html#l00140">140</a> of file <a class="el" href="pubkey_8cpp_source.html">pubkey.cpp</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="pubkey_8h_source.html">pubkey.h</a></li> <li><a class="el" href="pubkey_8cpp_source.html">pubkey.cpp</a></li> </ul> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Wed Nov 27 2019 15:04:45 for Crypto++ by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.15 </small></address> </body> </html>