Hi Vasil,
thank you for the information!
I found a BSD licensed JavaScript lib with HMAC SHA hash functions (Paj's Home: Cryptography: JavaScript MD5: Scripts) and could get it to run on HANA XS after some tweaking and thanks to your hint about the missing support for the |= operator.
After some more research, I found information about unofficial crypto features (https://community.wdf.sap.corp/message/401867#401867 ) that also include the HMAC SHA1 method:
// Calculate HMACSHA1-Value (160 Bits) which is returned as a Buffer of 20 Bytes
var hmacSha1ByteBuffer = $.util.crypto.hmacSha1(inPassword, inValue);
// Encode ByteBuffer to Base64-String
var base64hmacSha1String = $.util.convert.encodeBase64(hmacSha1ByteBuffer);
So I will try to use these for now, hoping that they will become official eventually.
Cheers,
Steffen