Skip to content

Commit

Permalink
bootutil : Move fake_rng declaration
Browse files Browse the repository at this point in the history
Signed-off-by: Raphael Dupont <raphael7dup@gmail.com>
  • Loading branch information
RaphaelDupont committed May 23, 2023
1 parent 36099da commit 09632c9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion boot/bootutil/src/encrypted_priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@

#if defined(MCUBOOT_ENCRYPT_RSA)
# define EXPECTED_ENC_TLV IMAGE_TLV_ENC_RSA2048
int fake_rng(void *p_rng, unsigned char *output, size_t len);
#elif defined(MCUBOOT_ENCRYPT_KW)
# define EXPECTED_ENC_TLV IMAGE_TLV_ENC_KW
#elif defined(MCUBOOT_ENCRYPT_EC256)
Expand All @@ -61,6 +60,12 @@ _Static_assert(EC_CIPHERKEY_INDEX + BOOT_ENC_KEY_SIZE == EXPECTED_ENC_LEN,
#include "bootutil/crypto/ecdh_x25519.h"
#endif

#if defined(MCUBOOT_ENCRYPT_RSA)

int fake_rng(void *p_rng, unsigned char *output, size_t len);

#endif /* MCUBOOT_ENCRYPT_RSA */

#if defined(MCUBOOT_ENCRYPT_EC256) || defined(MCUBOOT_ENCRYPT_X25519)

int expand_secret(uint8_t *derived_key, uint8_t *shared);
Expand Down

0 comments on commit 09632c9

Please sign in to comment.