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: 8057
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: 10256
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
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
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts COBOL Programming Sandpit? jodrisco COBOL Programming 6 Wed Apr 12, 2017 3:47 am


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