Hi Murray, with "applicationServerExecution" my digest comes back totally empty. If I leave this out or insert "presentationClientExecution" I just end up with noise in the digest, e,g, data from the client shortcut or the JDE MDI caption.
e.g.
WORKSPACE
Code: Select all
vars
bin : Binary;
hash : Binary[64];
len : Integer64;
begin
hash := null;
bin := 'TEST'.Binary;
len := bin.length;
call sha512 (bin, len, hash);
write hash.display;
write hash.toHexDigits.String;
write 'Should be';
write '7bfa95a688924c47c7d22381f20cc926f524beacb13f84e203d4bd8cb6ba2fce81c57a5f059bf3d509926487bde925b3bcee0635e4f7baeba054e5dba696b2bf'.toUpper;
end;
presentationClientExecution
Code: Select all
sha512(data: Binary; length: Integer64; digest: Binary[64] output) is "SHA512" in libeay32 presentationClientExecution;
output
00000001 4A41 4445 2028 433A 5C43 6F6E 636F 7264 JADE (C:\Concord
00000017 5F64 6576 5C73 7973 7465 6D20 3A20 416E _dev\system : An
00000033 6472 6577 203A 2073 696E 676C 6555 7365 drew : singleUse
00000049 7229 202D 205B 4353 4261 7365 5363 6865 r) - [CSBaseSche
4A4144452028433A5C436F6E636F72645F6465765C73797374656D203A20416E64726577203A2073696E676C655573657229202D205B43534261736553636865
Should be
7BFA95A688924C47C7D22381F20CC926F524BEACB13F84E203D4BD8CB6BA2FCE81C57A5F059BF3D509926487BDE925B3BCEE0635E4F7BAEBA054E5DBA696B2BF
applicationServerExecution
Code: Select all
sha512(data: Binary; length: Integer64; digest: Binary[64] output) is "SHA512" in libeay32 applicationServerExecution;
output
00000001 0000 0000 0000 0000 0000 0000 0000 0000 ................
00000017 0000 0000 0000 0000 0000 0000 0000 0000 ................
00000033 0000 0000 0000 0000 0000 0000 0000 0000 ................
00000049 0000 0000 0000 0000 0000 0000 0000 0000 ................
Should be
7BFA95A688924C47C7D22381F20CC926F524BEACB13F84E203D4BD8CB6BA2FCE81C57A5F059BF3D509926487BDE925B3BCEE0635E4F7BAEBA054E5DBA696B2BF