mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-06-13 15:22:00 +00:00

OpenSSL changes quite a bit of the key validation, and most of the keys I can find in the wild aren't marked as trusted by the new checker. Intel noticed this too: https://github.com/vathpela/edk2/commit/f536d7c3ed but instead of fixing the compatibility error, they switched their test data to match the bug. So that's pretty broken. For now, I'm reverting OpenSSL 1.1.0e, because we need those certs in the wild to work. This reverts commit513cbe2aea
. This reverts commite9cc33d6f2
. This reverts commit80d49f758e
. This reverts commit9bc647e2b2
. This reverts commitae75df6232
. This reverts commite883479f35
. This reverts commit97469449fd
. This reverts commite39692647f
. This reverts commit0f3dfc01e2
. This reverts commit4da6ac8195
. This reverts commitd064bd7eef
. This reverts commit9bc86cfd6f
. This reverts commitab9a05a10f
. Signed-off-by: Peter Jones <pjones@redhat.com>
42 lines
1.1 KiB
C
42 lines
1.1 KiB
C
#ifndef HEADER_WHRLPOOL_H
|
|
# define HEADER_WHRLPOOL_H
|
|
|
|
# include <openssl/e_os2.h>
|
|
# include <stddef.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
# define WHIRLPOOL_DIGEST_LENGTH (512/8)
|
|
# define WHIRLPOOL_BBLOCK 512
|
|
# define WHIRLPOOL_COUNTER (256/8)
|
|
|
|
typedef struct {
|
|
union {
|
|
unsigned char c[WHIRLPOOL_DIGEST_LENGTH];
|
|
/* double q is here to ensure 64-bit alignment */
|
|
double q[WHIRLPOOL_DIGEST_LENGTH / sizeof(double)];
|
|
} H;
|
|
unsigned char data[WHIRLPOOL_BBLOCK / 8];
|
|
unsigned int bitoff;
|
|
size_t bitlen[WHIRLPOOL_COUNTER / sizeof(size_t)];
|
|
} WHIRLPOOL_CTX;
|
|
|
|
# ifndef OPENSSL_NO_WHIRLPOOL
|
|
# ifdef OPENSSL_FIPS
|
|
int private_WHIRLPOOL_Init(WHIRLPOOL_CTX *c);
|
|
# endif
|
|
int WHIRLPOOL_Init(WHIRLPOOL_CTX *c);
|
|
int WHIRLPOOL_Update(WHIRLPOOL_CTX *c, const void *inp, size_t bytes);
|
|
void WHIRLPOOL_BitUpdate(WHIRLPOOL_CTX *c, const void *inp, size_t bits);
|
|
int WHIRLPOOL_Final(unsigned char *md, WHIRLPOOL_CTX *c);
|
|
unsigned char *WHIRLPOOL(const void *inp, size_t bytes, unsigned char *md);
|
|
# endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|