Return an error from BE_MessageDigest & BE_HMAC when an invalid algorithm is supplied
Correctly initialise the data vector when returning base64