def METHOD_NAME(self, password: bytes) -> KeySerializationEncryption:
    if not isinstance(password, bytes) or len(password) == 0:
        raise ValueError("Password must be 1 or more bytes.")
    return _KeySerializationEncryption(
        self._format,
        password,
        kdf_rounds=self._kdf_rounds,
        hmac_hash=self._hmac_hash,
        key_cert_algorithm=self._key_cert_algorithm,
    )