Commit 6ace9ee9 authored by Fabio Utzig's avatar Fabio Utzig Committed by Fabio Utzig
Browse files

Mark key_unwrap local function static

Signed-off-by: default avatarFabio Utzig <utzig@apache.org>
parent 81c46750
Loading
Loading
Loading
Loading
+2 −2
Changes for boot/bootutil/src/encrypted.c: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@

#if defined(MCUBOOT_ENCRYPT_KW)
#if defined(MCUBOOT_USE_MBED_TLS)
int
static int
key_unwrap(uint8_t *wrapped, uint8_t *enckey)
{
    mbedtls_nist_kw_context kw;
@@ -80,7 +80,7 @@ done:
 * Implements AES key unwrapping following RFC-3394 section 2.2.2, using
 * tinycrypt for AES-128 decryption.
 */
int
static int
key_unwrap(uint8_t *wrapped, uint8_t *enckey)
{
    struct tc_aes_key_sched_struct aes;