X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=lib%2Fsha256.c;h=7f5a3618d0da90686fe45eb3df5b671b2a64574d;hb=1c38a7741c59d1213004a07c362ae7f07a3d9357;hp=3212baba5f6c253f635220bd55b0c31707ae9341;hpb=d2a3e911390f9fc4d8c0ee4b3c7fc75f4fd3fd19;p=u-boot diff --git a/lib/sha256.c b/lib/sha256.c index 3212baba5f..7f5a3618d0 100644 --- a/lib/sha256.c +++ b/lib/sha256.c @@ -8,10 +8,18 @@ #ifndef USE_HOSTCC #include +#include +#else +#include #endif /* USE_HOSTCC */ #include -#include -#include +#include + +const uint8_t sha256_der_prefix[SHA256_DER_LEN] = { + 0x30, 0x31, 0x30, 0x0d, 0x06, 0x09, 0x60, 0x86, + 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x01, 0x05, + 0x00, 0x04, 0x20 +}; /* * 32-bit integer manipulation macros (big endian)