libpayload: fix wrong endian assumption in sha1.c

Not all platforms !x86 are big endian, hence actually look
at the CONFIG_LITTLE_ENDIAN flag instead of CONFIG_ARCH_X86.

Change-Id: Ibbd8f48b377a1121dd1e045834a94a2d67eda2ab
Signed-off-by: Stefan Reinauer <>
Reviewed-by: Patrick Georgi <>
Reviewed-by: Ronald G. Minnich <>
Commit-Queue: Stefan Reinauer <>
Tested-by: Stefan Reinauer <>
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <>
1 file changed