From 2037b837f81485770fcb066adea70b1d22e9b727 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Sat, 8 Aug 2020 18:46:43 +0200 Subject: sbtools: convert crypto to libtomcrypt. Replace the use of crypto++ with tomcrypt, which is much smaller and C. This gets rid of various build issues for systems that don't ship crypo++ (i.e. everything except Linux.) Change-Id: Ic0799e17b94935c71b14765cf9a2a7ea2b0adc7a --- utils/imxtools/sbtools/crypto.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'utils/imxtools/sbtools/crypto.h') diff --git a/utils/imxtools/sbtools/crypto.h b/utils/imxtools/sbtools/crypto.h index bdb94bb881..446891b7f2 100644 --- a/utils/imxtools/sbtools/crypto.h +++ b/utils/imxtools/sbtools/crypto.h @@ -77,11 +77,12 @@ int crypto_apply( uint32_t crc(uint8_t *data, int size); uint32_t crc_continue(uint32_t previous_crc, uint8_t *data, int size); +#include "tomcrypt.h" /* sha1.c */ struct sha_1_params_t { uint8_t hash[20]; /* final hash */ - void *object; /* pointer to CryptoPP::SHA1 object */ + hash_state state; /* libtomcrypt state */ }; void sha_1_init(struct sha_1_params_t *params); -- cgit v1.2.3