IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Cobol component calls MHASH lib for hashing...


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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: 8697
Location: Dubuque, Iowa, USA

PostPosted: Fri Jan 02, 2009 4:34 pm
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Jan 02, 2009 10:37 pm
Reply with quote

when You speak of mhash do You refer to the mhash free library at
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top