import hmac
import hashlib


def hash_bytes(
        k: bytes,
        e: bytes,
) -> bytes:
    """Hash bytes using SHA-256.

    :param k: Hash key
    :type k: bytes
    :param e: Hash input
    :type e: bytes
    :returns: The SHA-256 hash of the input bytes
    :rtype: bytes
    """
    return hmac.new(k, e, hashlib.sha256).digest()