On Fri, Sep 6, 2013 at 12:10 AM, Pascal Jasmin <[email protected]> wrote:
> The problem is that the 3rd param to CryptGetHashParam is a pointer to a byte 
> array, and should hold the hash result, but I'm unable to see it change.  The 
> 2nd param in CryptHashData may also be called incorrectly here.
>
> any help?
...
> CryptGetHashParam =: 'advapi32.dll CryptGetHashParam i *i i *c *i i' & cd

http://www.jsoftware.com/help/user/call_procedure.htm says:

"> option returns a scalar result. Without > the result is the boxed
scalar result appended to the boxed arguments."

You are using i for the result type here.

> CryptGetHashParam (<h); HP_HASHVAL ; (<o ); (,32) ; 0

<o should be the second parameter, and ,32 the third.

So you are trying to get advapi32.dll to change the 32? I think you
need to pass a reference to memory allocated by mema, that you can
inspect after the operation.

That said, I have not actually tried this so I might be wrong.

Thanks,

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to