32#include "core/crypto.h"
34#if defined(VARIANT_OPEN) || defined(VARIANT_EVAL) || defined(VARIANT_ULTIMATE)
35#include "rng/hmac_drbg.h"
39#define CHECK_DATA_LENGTH 512
40#define INIT_VECTOR_LENGTH 16
54 #if defined(VARIANT_OPEN) || defined(VARIANT_EVAL) || defined(VARIANT_ULTIMATE)
55 HmacDrbgContext *hmacDrbgContext;
58 char seed[SEED_LENGTH];
67 const char *auth_algo;
68 const char *integrity_algo;
71 const char *sign_algo;
74 const HashAlgo *signHashAlgo;
83 size_t inputBinarySize;
85 size_t signedBinarySize;
87 size_t paddedBinarySize;
89 size_t blockifiedBinarySize;
91 size_t cipherBinarySize;
Buffers the image passes through while it is built.
Definition main.h:81
char * inputBinary
The firmware binary as read from disk.
Definition main.h:82
char * paddedBinary
Padding followed by the binary, as the body carries it.
Definition main.h:86
char * signedBinary
Input binary with the runtime signature or digest appended.
Definition main.h:84
char * cipherBinary
Encrypted body.
Definition main.h:90
char * blockifiedBinary
Padded binary rounded up to the cipher block size.
Definition main.h:88