import hmac
import hashlib


def sha256_hmac(key, bytes):
    """Computes a hexadecimal HMAC using the SHA256 digest algorithm."""
    return hmac.new(key, bytes, digestmod=hashlib.sha256).hexdigest()