<?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: bigcrypt in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/bigcrypt/m-p/4963819#M786332</link>
    <description>Thanks Sandman, that did it!&lt;BR /&gt;Before I saw your reply, I was doing strings on every file under /usr/lib/ and grepping for bigcrypt and found libsec.2 had it.&lt;BR /&gt;I tried -llibsec.2 and it didn't work, and I wouldn't have know to use -lsec.&lt;BR /&gt;Thanks so much for the solution.</description>
    <pubDate>Wed, 01 Mar 2006 20:32:11 GMT</pubDate>
    <dc:creator>Nivesh Patnaik_1</dc:creator>
    <dc:date>2006-03-01T20:32:11Z</dc:date>
    <item>
      <title>bigcrypt</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bigcrypt/m-p/4963810#M786323</link>
      <description>I am trying to use bigcrypt(char*, char*);&lt;BR /&gt;&lt;BR /&gt;Based on the man page, I include&lt;BR /&gt;#include &lt;HPSECURITY.H&gt;&lt;BR /&gt;#include &lt;PROT.H&gt;&lt;BR /&gt;&lt;BR /&gt;When compiling using "cc myfl.c" I get&lt;BR /&gt;/usr/ccs/bin/ld: Unsatisfied symbols:&lt;BR /&gt;   bigcrypt (first referenced in myfl.c)(code)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;What library should I be referencing to get this to work?&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;/PROT.H&gt;&lt;/HPSECURITY.H&gt;</description>
      <pubDate>Wed, 01 Mar 2006 16:58:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bigcrypt/m-p/4963810#M786323</guid>
      <dc:creator>Nivesh Patnaik_1</dc:creator>
      <dc:date>2006-03-01T16:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: bigcrypt</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bigcrypt/m-p/4963811#M786324</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;What's the command you are using for compiling the C source code.&lt;BR /&gt;&lt;BR /&gt;thanks!</description>
      <pubDate>Wed, 01 Mar 2006 17:10:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bigcrypt/m-p/4963811#M786324</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2006-03-01T17:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: bigcrypt</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bigcrypt/m-p/4963812#M786325</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;HPSECURITY.H&gt; &lt;BR /&gt;#include &lt;PROT.H&gt; &lt;BR /&gt;char *bigcrypt(char *key, char *salt); &lt;BR /&gt;void main()&lt;BR /&gt;{&lt;BR /&gt;  printf( "I am alive\n" );&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;...compiles ok for me.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;/PROT.H&gt;&lt;/HPSECURITY.H&gt;&lt;/STDIO.H&gt;</description>
      <pubDate>Wed, 01 Mar 2006 17:14:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bigcrypt/m-p/4963812#M786325</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-03-01T17:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: bigcrypt</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bigcrypt/m-p/4963813#M786326</link>
      <description>JRF,&lt;BR /&gt;&lt;BR /&gt;don't you have to call the function to get a linker error?&lt;BR /&gt;&lt;BR /&gt;greetings,&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Mar 2006 18:16:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bigcrypt/m-p/4963813#M786326</guid>
      <dc:creator>Michael Schulte zur Sur</dc:creator>
      <dc:date>2006-03-01T18:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: bigcrypt</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bigcrypt/m-p/4963814#M786327</link>
      <description>Here are the contents of myfl.c&lt;BR /&gt;&lt;BR /&gt;#include &lt;HPSECURITY.H&gt;&lt;BR /&gt;#include &lt;PROT.H&gt;&lt;BR /&gt;main(argc,argv)&lt;BR /&gt;int argc;&lt;BR /&gt;char *argv[];&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt; char encrypted[40];&lt;BR /&gt; strcpy(encrypted,(char *)bigcrypt(argv[1],argv[2]));&lt;BR /&gt; printf("%s",encrypted);&lt;BR /&gt; exit(0);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Here is how I compile it on a plain vanilla HP-UX 11.00 box...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# cc myfl.c&lt;BR /&gt;/usr/ccs/bin/ld: Unsatisfied symbols:&lt;BR /&gt;   bigcrypt (first referenced in myfl.o) (code)&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;I can compile the code just fine if I use crypt() and include different header files, but crypt() limits the encryption of a string upto 8 chars in length, and I need it to encrypt a bigger string for password encryption.&lt;BR /&gt;&lt;/PROT.H&gt;&lt;/HPSECURITY.H&gt;</description>
      <pubDate>Wed, 01 Mar 2006 18:17:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bigcrypt/m-p/4963814#M786327</guid>
      <dc:creator>Nivesh Patnaik_1</dc:creator>
      <dc:date>2006-03-01T18:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: bigcrypt</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bigcrypt/m-p/4963815#M786328</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;Yes, of course I have to call the function to see the error --- I was just not thinking!&lt;BR /&gt;&lt;BR /&gt;I too can reproduce the error.  Sorry.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 01 Mar 2006 18:25:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bigcrypt/m-p/4963815#M786328</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-03-01T18:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: bigcrypt</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bigcrypt/m-p/4963816#M786329</link>
      <description>HI,&lt;BR /&gt;&lt;BR /&gt;I guess you need to link the lib with bigcrypt to the program. Have a look at&lt;BR /&gt;&lt;A href="http://web.mit.edu/ghudson/dev/xscreensaver-import/xscreensaver-4.14/driver/passwd-pwent.c" target="_blank"&gt;http://web.mit.edu/ghudson/dev/xscreensaver-import/xscreensaver-4.14/driver/passwd-pwent.c&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;greetings,&lt;BR /&gt;&lt;BR /&gt;Michael</description>
      <pubDate>Wed, 01 Mar 2006 18:26:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bigcrypt/m-p/4963816#M786329</guid>
      <dc:creator>Michael Schulte zur Sur</dc:creator>
      <dc:date>2006-03-01T18:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: bigcrypt</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bigcrypt/m-p/4963817#M786330</link>
      <description>I have looked at the code in the link above and tried including every header file applicable, with no luck. I still do not know what library file (under /usr/lib) contains bigcrypt so I don't know what to use with the -l option.&lt;BR /&gt;&lt;BR /&gt;When I try an assortment of -L and -l options, for example&lt;BR /&gt;# cc myfl.c -L /usr/lib -l libc.2&lt;BR /&gt;/usr/ccs/bin/ld: Can't find library: "libc.2"&lt;BR /&gt;&lt;BR /&gt;So I don't know if I need to setup environment variables...I have even tried&lt;BR /&gt;export LD_LIBRARY_PATH=/usr/lib&lt;BR /&gt;export SHLIB_PATH=/usr/lib&lt;BR /&gt;&lt;BR /&gt;but that doesn't solve the "Can't find library" issue.</description>
      <pubDate>Wed, 01 Mar 2006 20:07:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bigcrypt/m-p/4963817#M786330</guid>
      <dc:creator>Nivesh Patnaik_1</dc:creator>
      <dc:date>2006-03-01T20:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: bigcrypt</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bigcrypt/m-p/4963818#M786331</link>
      <description>Hi Nivesh,&lt;BR /&gt;&lt;BR /&gt;Your code is fine (although not ANSI C compliant). In order to use the bigcrypt API you need to link your source code with the shared version of the security library i.e. /usr/lib/libsec.sl. So your command for compilation should be:&lt;BR /&gt;&lt;BR /&gt;# cc myfl.c -o myfl -lsec&lt;BR /&gt;&lt;BR /&gt;Suggest changing...&lt;BR /&gt;&amp;gt;&amp;gt;printf("%s",encrypted);&amp;lt;&amp;lt;&lt;BR /&gt;TO&lt;BR /&gt;printf("%s\n",encrypted);&lt;BR /&gt;&lt;BR /&gt;cheers!</description>
      <pubDate>Wed, 01 Mar 2006 20:11:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bigcrypt/m-p/4963818#M786331</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2006-03-01T20:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: bigcrypt</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bigcrypt/m-p/4963819#M786332</link>
      <description>Thanks Sandman, that did it!&lt;BR /&gt;Before I saw your reply, I was doing strings on every file under /usr/lib/ and grepping for bigcrypt and found libsec.2 had it.&lt;BR /&gt;I tried -llibsec.2 and it didn't work, and I wouldn't have know to use -lsec.&lt;BR /&gt;Thanks so much for the solution.</description>
      <pubDate>Wed, 01 Mar 2006 20:32:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bigcrypt/m-p/4963819#M786332</guid>
      <dc:creator>Nivesh Patnaik_1</dc:creator>
      <dc:date>2006-03-01T20:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: bigcrypt</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bigcrypt/m-p/4963820#M786333</link>
      <description>Sandman gave the solution. Thanks!</description>
      <pubDate>Wed, 01 Mar 2006 20:34:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bigcrypt/m-p/4963820#M786333</guid>
      <dc:creator>Nivesh Patnaik_1</dc:creator>
      <dc:date>2006-03-01T20:34:06Z</dc:date>
    </item>
  </channel>
</rss>

