Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Cobol component calls MHASH lib for hashing...

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Nithya Sankar

New User


Joined: 15 Dec 2008
Posts: 4
Location: Bangalore

PostPosted: Fri Jan 02, 2009 12:44 pm    Post subject: Cobol component calls MHASH lib for hashing...
Reply with quote

I know that MHASH is free library which contains many hash algorithms to get hash code. In my current program 3 dynamic calls goes to MHASH to invoke SHA-1 hash algorithm.The requirement is to invoke SHA-256.i.e. currently the output is 24bit, but i should make changes to get 32bit. If anybody have come across such a scenario please enrich with some essential data. How to invoke SHA-256 hash algorithm which exists in MHASH library from COBOL?
If the query is not clear please let me know...
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8120
Location: East Dubuque, Illinois, USA

PostPosted: Fri Jan 02, 2009 4:34 pm    Post subject:
Reply with quote

You probably need to consult your MHASH documentation to find the answers; possibly post to the MHASH developers board?

Quote:
The requirement is to invoke SHA-256.i.e. currently the output is 24bit, but i should make changes to get 32bit
I especially do not understand what you mean by this, since SHA-1 generates 160 output bits and SHA-256 generates 256 output bits; if you're cutting down the output to 24 bits then you're really messing up the algorithm. If you're referring to a 24-bit load module that needs to go to 31-bits (note that 32-bit load modules don't exist per se on z/OS systems, just 31-bits due to the architecture), then you're going to run into problems calling the 24-bit MHASH routine using addresses that MHASH cannot access.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10276
Location: italy

PostPosted: Fri Jan 02, 2009 10:37 pm    Post subject: Reply to: Cobol component calls MHASH lib for hashing...
Reply with quote

when You speak of mhash do You refer to the mhash free library at
http://mhash.sourceforge.net/

if this is the case how does this thread relate to mainframe cobol...
???

the infrastucture of mhash is provided for C language programs
to invoke it from a mainframe non USS cobol looks not trivial
it implies quite bit of skills and a lot of work being done
if it has been done You might probably get more help from the people
who installed mhash in Your environment rather than from a public/generic cobol forum
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm
No new posts COBOL DB2 program - zIIP eligible vasanthz COBOL Programming 7 Wed May 31, 2017 5:12 am
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us