I've been involved in a lot of x86-specific architectural and security discussions, and for quite a few years I've thought that the whole Secure Boot architecture is ridiculous.
If I were designing a system along these lines, and I had the ability to influence the hardware design, I would do it very differently, like so:
Define a "super-secure" area of flash at the beginning. It has the rule that it's unlocked at reset and that it can be locked. Once locked, nothing (not SMM, not TrustZone, not magic hardware features, not debug -- literally nothing [0]) can write to it until the next full reset. Furthermore, as added hardening, the non-super-secure flash cannot be executed until super-secure is locked.
In super-secure goes a small bootloader and descriptors for at least two boot slots, where each descriptor contains a hash and the location and length of the slot. (The slot's data lives in normal flash.) There is also a reference to an area of flash that can contain an update request.
On boot, the super-secure bootloader checks whether an update is requested, which it does by reading the data referenced by the update request descriptor. If there is one, it processes the update, which it does by reading the update data's hash, verifying the signature, copying the update data to the target boot slot [1] and then writing the verified hash to the corresponding super-secure descriptor.
Then the loader chooses a boot slot to boot, reads the (secure!) hash, verifies it against the data to be booted, sets the super-secure lock bit, and jumps.
In the modern world, I would formally verify the entire secure loader implementation -- it would be very little code and I think it's well within the scope of what current tools cal do.
This completely removes the exposure where untrustworthy code can try to directly attack running TrustZone or SMM code. And it completely removes the exposure where an attacker can try to bypass a complex flash locking scheme to write to supposedly secure space (I've lost count of how many times the latter has happened). (Keep in mind that, in the Secure Boot design as implemented in TianoCore, the OS can literally call into more-privileged code that is allowed to write to secure storage. Securing this is hard, and it's basically impossible given the outrageously low code quality of TianoCore.)
With this design, if you want to do something involving writing to secure storage, you first serialize the request and write it to ordinary insecure storage. Then you do a full reset, which means that the code with actual secure-write permission is running from a truly clean slate.
In this design, there is no point to verifying a signature at boot, as the hash is stored with equal security as the code verifying the hash.
[0] Existing x86 implementations are ridiculous. There are a whole bunch of lock bits (some are even documented!), and the allowability of writing to an address in flash depends on what code requested the write. These are multicore systems -- there are many different parts of the chip that could request a write, and the controller needs to figure out which component (e.g. which CPU core) made the request and what mode it was in to decide whether to allow the write. (Or maybe the initiator filters writes, but the initiator doesn't own the lock bits.) It's an incredible mess. In my model, there is one bit, local to the SPI master or flash controller, and when that bit is set, writes to the protected are are unconditionally denied.
[1] The copy is actually optional. An alternative design would be for non-secure code to put the data in its final location and then ask super-secure to just update the descriptor. This makes the super-secure code simpler but it’s also more fragile.