×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
Hello,
at V5R2 CIPHER MI instruction does not support SHA-256 (only SHA-1)
QC3* API were only introduced at V5R3...
I could be wrong but for me at V5R2, it is a real challenge.
One option would be to download the C open source version (that supports
right endian versions) and compile it on your system... (if you have
the C compiler...)
not easy but do-able...
another option would be to use java but at V5R2... iI think the the JVM
is limited to 1.4 so would require to install the correct version of
bouncy castle jar.. (another challenge... )
Paul
From: Raul Jager <raul@xxxxxxxxxx>
To: midrange-l@xxxxxxxxxxxx
Date: 17/08/2018 19:26
Subject: Re: Program to Calculate Hash using SHA-256 of a file
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>
I use:
DCipher PR EXTPROC('_CIPHER')
D * VALUE
D * VALUE
D * VALUE
But I do not remember where is the documentation, Scot has a complete
sample at:
https://archive.midrange.com/midrange-l/200006/msg01334.html
On 08/17/2018 09:58 AM, p.caroti@xxxxxxxx wrote:
Hi all
I'm looking for an example how to calculate Hash using SHA-256 . be
patient
for my request : this should be run on V5R2m0 (it would be possible)
I found this old link
https://www.experts-exchange.com/questions/20502110/Need-to-call-MD5-algorit
hm-from-RPGLE.html, but i don't know how to (if possible) adapt to
SHA-256
Thanks in in advance
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.