Skip to content

Commit

Permalink
bootutil : Remove key_unwrap from encrypted_priv
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 22, 2023
1 parent f4794c8 commit fbf94f2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion boot/bootutil/src/encrypt_kw.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "bootutil/crypto/aes_kw.h"
#include "encrypted_priv.h"

int key_unwrap(const uint8_t *wrapped, uint8_t *enckey)
static int key_unwrap(const uint8_t *wrapped, uint8_t *enckey)
{
bootutil_aes_kw_context aes_kw;
int rc;
Expand Down
6 changes: 0 additions & 6 deletions boot/bootutil/src/encrypted_priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,6 @@ _Static_assert(EC_CIPHERKEY_INDEX + BOOT_ENC_KEY_SIZE == EXPECTED_ENC_LEN,
#include "bootutil/crypto/ecdh_x25519.h"
#endif

#if defined(MCUBOOT_ENCRYPT_KW)

int key_unwrap(const uint8_t *wrapped, uint8_t *enckey);

#endif /* MCUBOOT_ENCRYPT_KW */

#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 fbf94f2

Please sign in to comment.