Fixed bugs in encryption with deprecated algorithms
Fixed bugs in encryption with deprecated algorithms

kdata was being passed in as a string (lining up with the decrypt path) but not being wrapped into a buffer for concatenation
HMAC promise was not being treated as a promise

linuxwolf/node-jose,linuxwolf/node-jose,cisco/node-jose,cisco/node-jose