Zhihong Yang created SHINDIG-1930:
-------------------------------------
Summary: Bug fix for last review (configurable to support
different SHA algorithm) https://reviews.apache.org/r/11299
Key: SHINDIG-1930
URL: https://issues.apache.org/jira/browse/SHINDIG-1930
Project: Shindig
Issue Type: Bug
Components: Java
Affects Versions: 2.5.0-beta6
Reporter: Zhihong Yang
Fix For: 2.5.0-beta6
The problem appears to be in
BasicBlobCrypter.unwarp, more specifically the problem is with these two
lines
byte[] hmac = new byte[Crypto.HMAC_SHA_LEN];
byte[] cipherText = new byte[bin.length-Crypto.HMAC_SHA_LEN];
Crypto.HMAC_SHA_LEN is the length of the HMAC SHA1, so once you change the
hashing algorithm to something else the wrap function throws an exception.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira