Operating System - HP-UX
1754211 Members
4476 Online
108811 Solutions
New Discussion юеВ

Re: Where are the security services?

 
Ian Brown_7
New Member

Where are the security services?

I know this must be obvious, but I have looked and looked without success.

I have a Microsoft program which uses the Crypto API CryptEncrypt() to encrypt a block of memory using RC4. The actual application is to encrypt a PDF that it generates.

I now need to port this to HP-UX, but I cannot find any equivalent system calls to encrypt a block of memory.

Can someone please point me in the right direction?

Thanks,

Ian
5 REPLIES 5
Eric Antunes
Honored Contributor

Re: Where are the security services?

Hi Ian,

See those functions in the manual:

#man encrypt

Best Regards,

Eric Antunes

Each and every day is a good day to learn.
Ian Brown_7
New Member

Re: Where are the security services?

Thanks for the pointer - but I don't think it is what I need.

man encrypt tells me about the crypt() function. This is a one way encryption funtion for generating user passwords (as far as I can tell).

I need a function to encrypt via RC4 which is a symmetric cypher. From what I can tell, I don't think crypt() can do that for me.

Ian
Eric Antunes
Honored Contributor

Re: Where are the security services?

Ok,

I don't know anything about this specific rc4 symmetric cypher. The only thing I can tell you (hope this will help) is the location of a file with this name. If you execute "whereis rc4", you'll get something like this:

#whereis rc4
rc4: /sbin/rc4.d

Eric

Each and every day is a good day to learn.
Florian Heigl (new acc)
Honored Contributor

Re: Where are the security services?

Ian,
I'm quite clueless on cryptographic applications, but I think You'll need the openssl suite.
yesterday I stood at the edge. Today I'm one step ahead.
Steve Lewis
Honored Contributor

Re: Where are the security services?

The RC4 algorithm is included in openssl which you can download and install from here

http://hpux.connect.org.uk/hppd/hpux/Languages/openssl-0.9.7e/

You will be able to download the runtime and the source, free.

Otherwise I suggest you look into GPG, (www.gnupg.org)
Similar to PGP, it allows you to encrypt and sign files.