<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: a library in C that support DES decrypt (cryptography functions) in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/a-library-in-c-that-support-des-decrypt-cryptography-functions/m-p/5039355#M95614</link>
    <description>Hi Steven &amp;amp; Ralph,&lt;BR /&gt;&lt;BR /&gt;Again thanks for your kind help and your contribution, really appreciate it.&lt;BR /&gt;&lt;BR /&gt;With your guide, I will try to study the OpenSSL and I wish this project can be match with the specification.&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Best Regards,&lt;BR /&gt;AW - from the red dot country.</description>
    <pubDate>Thu, 12 Apr 2007 11:00:12 GMT</pubDate>
    <dc:creator>Adisuria Wangsadinata_1</dc:creator>
    <dc:date>2007-04-12T11:00:12Z</dc:date>
    <item>
      <title>a library in C that support DES decrypt (cryptography functions)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/a-library-in-c-that-support-des-decrypt-cryptography-functions/m-p/5039348#M95607</link>
      <description>Hi Folks,&lt;BR /&gt;&lt;BR /&gt;Good day to you !&lt;BR /&gt;I'm a newbie on C language and I've got a project with C language.&lt;BR /&gt;&lt;BR /&gt;Here is the background of the problem :&lt;BR /&gt;&lt;BR /&gt;The project requirement stated that files to be FTP-ed must be encrypted. From .net (windows environment), we’ll be encrypting using System.Security.Cryptography before sending the file through FTP. On HP-UX side, we need the C program to decrypt this file.&lt;BR /&gt;&lt;BR /&gt;We couldn’t find a library in C that supports cryptography. We did come across several customized library, but they’re not open source. So, could you advice if we have any library in C for cryptography functions?&lt;BR /&gt;&lt;BR /&gt;The plan is to use a symmetric algorithms that’s supported by .net API, namely DES, Triple DES,  RC2 or Rijndael.&lt;BR /&gt;&lt;BR /&gt;However, since we’re new to this, we’re open to suggestion.&lt;BR /&gt;&lt;BR /&gt;Please kindly advise.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;AW&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Apr 2007 02:04:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/a-library-in-c-that-support-des-decrypt-cryptography-functions/m-p/5039348#M95607</guid>
      <dc:creator>Adisuria Wangsadinata_1</dc:creator>
      <dc:date>2007-04-11T02:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: a library in C that support DES decrypt (cryptography functions)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/a-library-in-c-that-support-des-decrypt-cryptography-functions/m-p/5039349#M95608</link>
      <description>Rather than settle on a plan for which&lt;BR /&gt;software is available at only one end, I'd&lt;BR /&gt;look at encryption systems which might work&lt;BR /&gt;at both ends, and see if any of those is&lt;BR /&gt;suitable.  Perhaps:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://gnupg.org/" target="_blank"&gt;http://gnupg.org/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It should satisfy the "open source"&lt;BR /&gt;requirement, if nothing else.</description>
      <pubDate>Wed, 11 Apr 2007 02:39:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/a-library-in-c-that-support-des-decrypt-cryptography-functions/m-p/5039349#M95608</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-04-11T02:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: a library in C that support DES decrypt (cryptography functions)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/a-library-in-c-that-support-des-decrypt-cryptography-functions/m-p/5039350#M95609</link>
      <description>How about OpenSSL?&lt;BR /&gt;It is available to HP-UX for free from software.hp.com, and widely used in many software projects.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.openssl.org/" target="_blank"&gt;http://www.openssl.org/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Despite the name, it allows you to use its encryption/decryption/digest algorithms for any data, not just SSL connections. It supports at least DES, Triple-DES and RC2; current versions support Rijndael (AES) too.&lt;BR /&gt;&lt;BR /&gt;The documentation available on the OpenSSL web site is rather sparse: I'd recommend you to find a good OpenSSL book for programming reference. I'm not a programmer, but O'Reilly's "Network security with OpenSSL" looks good to me.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Wed, 11 Apr 2007 03:07:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/a-library-in-c-that-support-des-decrypt-cryptography-functions/m-p/5039350#M95609</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2007-04-11T03:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: a library in C that support DES decrypt (cryptography functions)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/a-library-in-c-that-support-des-decrypt-cryptography-functions/m-p/5039351#M95610</link>
      <description>As Matti wrote,&lt;BR /&gt;OpenSSL is definitely *the* Open Source crypto library for your purpose.&lt;BR /&gt;If you haven't installed it yet you should find the HP-UX port either on the application CD sets, or you can download it from the software website of HPs'&lt;BR /&gt;e.g.&lt;BR /&gt;&lt;A href="http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=OPENSSL11I" target="_blank"&gt;http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=OPENSSL11I&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Btw, if you have the HP-UX apache installed you already have it beneath the server root as in /opt/hpws/apache&lt;BR /&gt;&lt;BR /&gt;The OpenSSL lib also comes with a reference application binary that lets you encode and decode an lots of ciphers (see manpages of "openssl" and "enc" in particular).&lt;BR /&gt;&lt;BR /&gt;For instance if you want to produce some char noise (of /etc/issue) in Tripple DES you can say&lt;BR /&gt;&lt;BR /&gt;$ openssl enc -des3 -e -pass pass:secret -nosalt &amp;lt; /etc/issue                 &lt;BR /&gt;&lt;BR /&gt;vSÃ¬t~3I7[CÃºÂ·9Ã Â®n~Ãª;$s1eÃ&amp;nbsp;Ã Ã Ã«Â¬ÂªÃ©Ã²Ã¦6]Â½$&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;and likewise decode in one shot&lt;BR /&gt;&lt;BR /&gt;$ openssl enc -des3 -e -pass pass:secret -nosalt &amp;lt; /etc/issue | openssl enc -des3 -d -pass pass:secret -nosalt&lt;BR /&gt;GenericSysName [HP Release B.11.11] (see /etc/issue)&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Apr 2007 05:46:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/a-library-in-c-that-support-des-decrypt-cryptography-functions/m-p/5039351#M95610</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2007-04-11T05:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: a library in C that support DES decrypt (cryptography functions)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/a-library-in-c-that-support-des-decrypt-cryptography-functions/m-p/5039352#M95611</link>
      <description>Hi Steven, Mutti &amp;amp; Raplh,&lt;BR /&gt;&lt;BR /&gt;Thank you, appriciate your help.&lt;BR /&gt;&lt;BR /&gt;We just need to decrypt the DES on HP-UX side (has been encrypt before on windows system). Can OpenSSL do decrypt also ?&lt;BR /&gt;&lt;BR /&gt;The chart is like below :&lt;BR /&gt;&lt;BR /&gt;files on windows system &amp;gt; encrypt using system.security.cryptography &amp;gt; ftp to HP-UX system &amp;gt; decrypt the files &amp;gt; file will be use on HP-UX job process&lt;BR /&gt;&lt;BR /&gt;Sorry to ask the basic thing, since I'm totally newbie for this.&lt;BR /&gt;&lt;BR /&gt;Appreciate your kind attention and help.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;AW</description>
      <pubDate>Thu, 12 Apr 2007 00:11:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/a-library-in-c-that-support-des-decrypt-cryptography-functions/m-p/5039352#M95611</guid>
      <dc:creator>Adisuria Wangsadinata_1</dc:creator>
      <dc:date>2007-04-12T00:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: a library in C that support DES decrypt (cryptography functions)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/a-library-in-c-that-support-des-decrypt-cryptography-functions/m-p/5039353#M95612</link>
      <description>&lt;!--!*#--&gt;&amp;gt; The project requirement stated that files&lt;BR /&gt;&amp;gt; to be FTP-ed must be encrypted. [...]&lt;BR /&gt;&lt;BR /&gt;So, is the _real_ problem that you need to&lt;BR /&gt;transfer files, you plan to use FTP to do&lt;BR /&gt;that, and FTP is insecure?&lt;BR /&gt;&lt;BR /&gt;If so, there are other file transfer methods&lt;BR /&gt;which are more secure than FTP.  For example:&lt;BR /&gt;&lt;BR /&gt;   man sftp&lt;BR /&gt;&lt;BR /&gt;I assume that it's possible to find an&lt;BR /&gt;ssh/sftp client for the Windows system.&lt;BR /&gt;&lt;BR /&gt;It might be helpful to back up a little, and&lt;BR /&gt;decide what your _functional_ requirements&lt;BR /&gt;are, and then look at different possible&lt;BR /&gt;implementation methods which will satisfy&lt;BR /&gt;those requirements.  You know more about this&lt;BR /&gt;project than I do, but it sounds to me as if&lt;BR /&gt;you may be trying to find the best way to&lt;BR /&gt;implement a poor solution to what may be a&lt;BR /&gt;fairly simple requirement.  A clear&lt;BR /&gt;specification of the actual requirement may&lt;BR /&gt;open the door for people to suggest some&lt;BR /&gt;better ways to satisfy the actual&lt;BR /&gt;requirement, which may be more helpful than&lt;BR /&gt;collecting different ways to do the wrong&lt;BR /&gt;thing.</description>
      <pubDate>Thu, 12 Apr 2007 00:36:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/a-library-in-c-that-support-des-decrypt-cryptography-functions/m-p/5039353#M95612</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-04-12T00:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: a library in C that support DES decrypt (cryptography functions)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/a-library-in-c-that-support-des-decrypt-cryptography-functions/m-p/5039354#M95613</link>
      <description>Hi Adi,&lt;BR /&gt;&lt;BR /&gt;sure, OpenSSL can en- and decipher DES as well,&lt;BR /&gt;in fact a bewildering lot of various DES incantations.&lt;BR /&gt;After you have installed, either the prebuilt depot from the link I posted yesterday (the easiest if you want to develop under hpux), or compiled the whole OpenSSL suite from the sources, simply issue the following command:&lt;BR /&gt;&lt;BR /&gt;$ openssl list-cipher-commands|grep des&lt;BR /&gt;des&lt;BR /&gt;des-cbc&lt;BR /&gt;des-cfb&lt;BR /&gt;des-ecb&lt;BR /&gt;des-ede&lt;BR /&gt;des-ede-cbc&lt;BR /&gt;des-ede-cfb&lt;BR /&gt;des-ede-ofb&lt;BR /&gt;des-ede3&lt;BR /&gt;des-ede3-cbc&lt;BR /&gt;des-ede3-cfb&lt;BR /&gt;des-ede3-ofb&lt;BR /&gt;des-ofb&lt;BR /&gt;des3&lt;BR /&gt;desx&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;As you can see this is only filtered for DES ciphers.&lt;BR /&gt;Please, note that writing cryptographic applications is a very demanding challenge (although APIs as the OpenSSL are a tremendous relief).&lt;BR /&gt;To select the appropriate cipher requires a good understanding of cryptography and the chosen algorithms as well (and coding skills I should add).&lt;BR /&gt;I assume you picked this subject as kind of an exercise, maybe in a programming class.&lt;BR /&gt;So I trust you have a textbook or some paper that explains the basics of the DES algorithm (which I am afraid to admid lack the knowledge of).&lt;BR /&gt;Honestly, as you mentioned you were a C newbie, I would have picked a more tangible programming task for a start, where you (or your teacher) probably chose one of the most demanding.&lt;BR /&gt;&lt;BR /&gt;Some of the offered ciphers even may be "protected" by patents held by various companies,&lt;BR /&gt;or their use may even be deemed illegal in certain countries (although, as I understand it, the OpenSSL maintainers strive to rid their code mostly from anything possibly susceptible to patent infringements).&lt;BR /&gt;The README states that clearly:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; Various companies hold various patents for various algorithms in various&lt;BR /&gt; locations around the world. _YOU_ are responsible for ensuring that your use&lt;BR /&gt; of any algorithms is legal by checking if there are any patents in your&lt;BR /&gt; country.  The file contains some of the patents that we know about or are&lt;BR /&gt; rumored to exist. This is not a definitive list.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;As said, the openssl command itself is a reference implementation of the OpenSSL API.&lt;BR /&gt;Since it is Open Source you can actually look how the OpenSSL developers made use of their API.&lt;BR /&gt;If you installed the latest HP depot it actually installed binaries for both the 0.9.7 and 0.9.8 branch, with 0.9.7 making the default one (but toggable).&lt;BR /&gt;As can be read from the README.hp these binaries were compiled with hpux-cc (see the mentioned configure line).&lt;BR /&gt;Also were certain ciphers excluded (probably owe to the aforementioned patent issues, viz. &lt;BR /&gt;no-rc5 no-idea no-krb5 no-mdc2).&lt;BR /&gt;So if you have no license for the HP ansic compiler but must resort to gcc I would assume that library binaries aren't of much use to you, and you would have to compile them with gcc from the sources (but I may be wrong).&lt;BR /&gt;Nevertheless, the HP depot also includes the sources their depot was built from (but may be patched).&lt;BR /&gt;e.g.&lt;BR /&gt;$ ll /opt/openssl/src/openssl-0.9.7l.tar.gz &lt;BR /&gt;-r--r--r--   1 bin        bin        4373131 &lt;BR /&gt;/opt/openssl/src/openssl-0.9.7l.tar.gz&lt;BR /&gt;&lt;BR /&gt;At least you find a demos subdir in the tarball which I presume holds many coding examples that may be helpful to your task.&lt;BR /&gt;&lt;BR /&gt;Anyway, if you decide to delve deeper into the OpenSSL I would recommend you get this O'Reilly title (though a bit dated still very useful)&lt;BR /&gt;&lt;A href="http://www.oreilly.com/catalog/openssl/index.html" target="_blank"&gt;http://www.oreilly.com/catalog/openssl/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Apr 2007 03:20:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/a-library-in-c-that-support-des-decrypt-cryptography-functions/m-p/5039354#M95613</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2007-04-12T03:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: a library in C that support DES decrypt (cryptography functions)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/a-library-in-c-that-support-des-decrypt-cryptography-functions/m-p/5039355#M95614</link>
      <description>Hi Steven &amp;amp; Ralph,&lt;BR /&gt;&lt;BR /&gt;Again thanks for your kind help and your contribution, really appreciate it.&lt;BR /&gt;&lt;BR /&gt;With your guide, I will try to study the OpenSSL and I wish this project can be match with the specification.&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Best Regards,&lt;BR /&gt;AW - from the red dot country.</description>
      <pubDate>Thu, 12 Apr 2007 11:00:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/a-library-in-c-that-support-des-decrypt-cryptography-functions/m-p/5039355#M95614</guid>
      <dc:creator>Adisuria Wangsadinata_1</dc:creator>
      <dc:date>2007-04-12T11:00:12Z</dc:date>
    </item>
  </channel>
</rss>

