Image hash in BDCB_IMAGE_INFORMATION?

Hello,

In ELAM driver, we get Image hash as well as image hash algorithm type in BootDriverCallback.
I tried to calculate image hash using Crypt APIs(CryptAcquireContext, CryptCreateHash etc) and found that image hash is different with the image hash got in ELAM driver.
I calculated image hash using the same algorithm type.

Can anyone please help me to understand why this is the case?

Thanks in advance.