On 22/04/2025 4:06 pm, Sergii Dmytruk wrote: > xen/include/xen/sha256.h | 12 ++ > xen/lib/Makefile | 1 + > xen/lib/sha256.c | 238 +++++++++++++++++++++++++++++++++++++++ > 3 files changed, 251 insertions(+) > create mode 100644 xen/include/xen/sha256.h > create mode 100644 xen/lib/sha256.c
I added SHA2 a little while back, derived from the Trenchboot tree. See 372af524411f5a013bcb0b117073d8d07c026563 (and a few follow-up fixes). It should have everything needed, but we can adjust if necessary. We need to integrate SHA1 in a similar way. Xen now has various MISRA requirements to adhere to, which requires some adjustments, but I can advise if it isn't clear from the sha2 work I already did. ~Andrew