import binascii
import hashlib


def fingerprint_bytes(ssh_pubkey: str) -> bytes:
    """
    Returns the raw bytes for the fingerprint of an SSH public key.
    """
    data = binascii.a2b_base64(ssh_pubkey.split()[1])
    return hashlib.sha256(data).digest()