Fix cryptojs hmac implementation
Apparently the bowerized version of cryptojs's WordArray.create doesn't handle arraybuffers correctly.
This commit is contained in:
parent
6e86a2b7cf
commit
6e3014895b
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@
|
|||
assertIsArrayBuffer(key);
|
||||
assertIsArrayBuffer(input);
|
||||
return CryptoJS.HmacSHA256(
|
||||
CryptoJS.lib.WordArray.create(input),
|
||||
CryptoJS.enc.Latin1.parse(getString(input)),
|
||||
CryptoJS.enc.Latin1.parse(getString(key))
|
||||
).toString(CryptoJS.enc.Latin1);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue