Stupid me, Tony replied: @fstephany It should be there. You want crypto_auth_hmacsha256_ref instead
of crypto_auth_hmacsha256. See output of nm on libsodium.so.
It seems to work now ('seems' because I run in another issue now). On Mon, Jun 9, 2014 at 1:45 PM, François Stephany <tulipe.moutarde@gmail.com
wrote:
I haven't but will do.
On 9 June 2014 11:37, François Stephany <tulipe.moutarde@gmail.com> wrote:
Does anyone use the NaCl package to sign with HMAC SHA256 but we can't find what we need.
We've naively added:
apiCryptoAuthHMACSha256Output: outByteArray input: inByteArray inputLength: inByteArrayLength key:keyByteArray <apicall: long 'crypto_auth_hmacsha256' (byte* byte* ulonglong byte*) module: 'libsodium'> ^self externalCallFailed
which failed with 'Unable to find function address'.
Any hint of how to do that?
Have you tried pinging Tony Garnock-Jones? Not because this is a problem unique to libsodium, but since he wrote Smalltalk bindings for it ( http://www.eighty-twenty.org/index.cgi/tech/smalltalk/nacl-for-squeak-and-ph... ) he should know...
frank