PageRenderTime 107ms CodeModel.GetById 9ms RepoModel.GetById 0ms app.codeStats 0ms

/poco-1.4.2p1-all/poco-1.4.2p1-all-doc/Poco.Crypto.CipherFactory.html

#
HTML | 74 lines | 73 code | 1 blank | 0 comment | 0 complexity | 0bf68a3e338ac5db00020224de7aeb8f MD5 | raw file
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Class Poco::Crypto::CipherFactory</title>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
  6. <meta name="author" content="Applied Informatics Software Engineering GmbH and Contributors"/>
  7. <meta name="publisher" content="Applied Informatics Software Engineering GmbH and Contributors"/>
  8. <meta name="copyright" content="Copyright (c) 2011, Applied Informatics Software Engineering GmbH and Contributors"/>
  9. <meta name="language" content="en"/>
  10. <meta name="date" content="2011-09-24"/>
  11. <meta name="generator" content="PocoDoc"/>
  12. <link rel="stylesheet" href="css/styles.css" type="text/css"/>
  13. </head>
  14. <body bgcolor="#ffffff" leftmargin="0" topmargin="0">
  15. <div class="header">
  16. <h1 class="namespace"><a href="Poco.Crypto.html" class="namespace">Poco::Crypto</a></h1>
  17. <h1 class="symbol">class CipherFactory</h1>
  18. </div>
  19. <div class="body">
  20. <p>
  21. <b>Library:</b> Crypto<br />
  22. <b>Package:</b> Cipher<br />
  23. <b>Header:</b> Poco/Crypto/CipherFactory.h</p>
  24. <h2>Description</h2>
  25. <div class="description">
  26. <p>A factory for <a href="Poco.Crypto.Cipher.html" title="class Poco::Crypto::Cipher">Cipher</a> objects. See the <a href="Poco.Crypto.Cipher.html" title="class Poco::Crypto::Cipher">Cipher</a> class for examples on how to use the <a href="Poco.Crypto.CipherFactory.html" title="class Poco::Crypto::CipherFactory">CipherFactory</a>. </p>
  27. </div>
  28. <h2>Member Summary</h2>
  29. <p><b>Member Functions: </b><a href="Poco.Crypto.CipherFactory.html#38" title="Poco::Crypto::CipherFactory::createCipher()">createCipher</a>, <a href="Poco.Crypto.CipherFactory.html#43" title="Poco::Crypto::CipherFactory::defaultFactory()">defaultFactory</a></p>
  30. <h2>Constructors</h2>
  31. <h3><a name="36">CipherFactory</a></h3>
  32. <p class="decl"><a href="Poco.Crypto.CipherFactory.html" title="class Poco::Crypto::CipherFactory">CipherFactory</a>();</p>
  33. <div class="description">
  34. <p>Creates a new <a href="Poco.Crypto.CipherFactory.html" title="class Poco::Crypto::CipherFactory">CipherFactory</a> object. </p>
  35. </div>
  36. <h2>Destructor</h2>
  37. <h3><a name="37">~CipherFactory</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
  38. <p class="decl">virtual ~<a href="Poco.Crypto.CipherFactory.html" title="class Poco::Crypto::CipherFactory">CipherFactory</a>();</p>
  39. <div class="description">
  40. <p>Destroys the <a href="Poco.Crypto.CipherFactory.html" title="class Poco::Crypto::CipherFactory">CipherFactory</a>. </p>
  41. </div>
  42. <h2>Member Functions</h2>
  43. <h3><a name="38">createCipher</a></h3>
  44. <p class="decl"><a href="Poco.Crypto.Cipher.html" title="class Poco::Crypto::Cipher">Cipher</a> * createCipher(<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.Crypto.CipherKey.html" title="class Poco::Crypto::CipherKey">CipherKey</a> &amp; key<br />);</p>
  45. <div class="description">
  46. <p>Creates a <a href="Poco.Crypto.Cipher.html" title="class Poco::Crypto::Cipher">Cipher</a> object for the given <a href="Poco.Crypto.Cipher.html" title="class Poco::Crypto::Cipher">Cipher</a> name. Valid cipher names depend on the OpenSSL version the library is linked with; see the output of </p>
  47. <p></p>
  48. <pre>openssl enc --help
  49. </pre>
  50. <p>for a list of supported block and stream ciphers. </p>
  51. <p>Common examples are: </p>
  52. <p></p>
  53. <ul>
  54. <li>AES: &quot;aes-128&quot;, &quot;aes-256&quot; </li>
  55. <li>DES: &quot;des&quot;, &quot;des3&quot; </li>
  56. <li>Blowfish: &quot;bf&quot; </li>
  57. </ul>
  58. </div>
  59. <h3><a name="40">createCipher</a></h3>
  60. <p class="decl"><a href="Poco.Crypto.Cipher.html" title="class Poco::Crypto::Cipher">Cipher</a> * createCipher(<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.Crypto.RSAKey.html" title="class Poco::Crypto::RSAKey">RSAKey</a> &amp; key,<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="#134" title="enum RSAPaddingMode">RSAPaddingMode</a> paddingMode = RSA_PADDING_PKCS1<br />);</p>
  61. <div class="description">
  62. <p>Creates a RSACipher using the given <a href="#343" title="RSA">RSA</a> key and padding mode for public key encryption/private key decryption. </p>
  63. </div>
  64. <h3><a name="43">defaultFactory</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
  65. <p class="decl">static <a href="Poco.Crypto.CipherFactory.html" title="class Poco::Crypto::CipherFactory">CipherFactory</a> &amp; defaultFactory();</p>
  66. <div class="description">
  67. <p>Returns the default <a href="Poco.Crypto.CipherFactory.html" title="class Poco::Crypto::CipherFactory">CipherFactory</a>. </p>
  68. </div>
  69. <p class="footer">POCO C++ Libraries 1.4.2p1-all<br />
  70. Copyright &copy; 2011, <a href="http://pocoproject.org/" target="_blank">Applied Informatics Software Engineering GmbH and Contributors</a></p>
  71. </div>
  72. </body>
  73. </html>