in cassandra_sigv4/auth.py [0:0]
def _sha_256_hmac(key, msg, hex_result=False):
if hex_result:
sig = hmac.new(_ensure_b(key), _ensure_b(msg), hashlib.sha256).hexdigest()
else:
sig = hmac.new(_ensure_b(key), _ensure_b(msg), hashlib.sha256).digest()
return sig