Put HMAC Results Into Local Buffer

HMAC SHA encode functions were putting results into a static array,
which is not thread safe. Declare a local buffer and read the results
into that instead.