md5 the buffer, not the key and update the comment with more details.