Software - General
1748142 Members
3639 Online
108758 Solutions
New Discussion

CRYPT with SHA512 on itanium 11.31

 
SOLVED
Go to solution
BoldEagle
Frequent Visitor

CRYPT with SHA512 on itanium 11.31

I have a product that uses verification of the user password.

Until now, the code uses the system call "crypt(pass, salt)" to encrypt the password.  However, the function does a simple crypt and will not do SHA512.

For example, in Linux the crypt(pass,slat) function take the form for salt = $6$xgdgdgdg$ and will do SHA512.

Does HP UX 11.31 on itanium has a similar function?  I did not find any in the MAN 3C pages.

Can someone help me how to improve my code and use SHA512?

Thanks

Yigal 

4 REPLIES 4
KishJ
HPE Pro

Re: CRYPT with SHA512 on itanium 11.31

Greetings,

For addiotnal encryption algorithms, please install the latest HP-UX Kernel Cryptographic Module (HP-UX KCM) v2.1

It contains algorithms of SHA-512.

https://h20392.www2.hpe.com/portal/swdepot/displayProductInfo.do?productNumber=HPUX-KCM

Regards,

KishJ


I am a HPE Employee

Accept or Kudo

KishJ
HPE Pro

Re: CRYPT with SHA512 on itanium 11.31

Greetigns again,

It is also recommended to update/install the latest SSH - https://h20392.www2.hpe.com/portal/swdepot/displayProductInfo.do?productNumber=T1471AA

And OpenSSL as well - https://h20392.www2.hpe.com/portal/swdepot/displayProductInfo.do?productNumber=OPENSSL11I

Regards,

Kishore Jacob


I am a HPE Employee

Accept or Kudo

BoldEagle
Frequent Visitor

Re: CRYPT with SHA512 on itanium 11.31

I installed the package but the function crypt() did not change the behavior.

Do you have sample C code that show how to use the new algorithem?

What link parameter I need?

Thanks 

Yigal

BoldEagle
Frequent Visitor
Solution

Re: CRYPT with SHA512 on itanium 11.31

HI HP,

I figured out how to do it.

Instead of crypt(pass, salt), I need to use crypt2(pass,salt).

The function crypt2 behaves like the Linux version.

Thanks