Skip to content

Commit 8da7995

Browse files
ahasztagnvlsianpu
authored andcommitted
[nrf noup] boot: zephyr: Surpress bootutil_decode_sig warning
nrf-squash! [nrf noup] boot: Add shared crypto for ECDSA and SHA If ASN1 was not enabled (in case of PSA crypto) a "defined but not used" warning was issued. This changes could not be placed in upstream as the line was modified by commit e3d6091 Signed-off-by: Artur Hadasz <[email protected]>
1 parent faf6152 commit 8da7995

File tree

1 file changed

+2
-0
lines changed
  • boot/bootutil/include/bootutil/crypto

1 file changed

+2
-0
lines changed

boot/bootutil/include/bootutil/crypto/ecdsa.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ static int bootutil_import_key(uint8_t **cp, uint8_t *end)
134134
}
135135
#endif /* (MCUBOOT_USE_TINYCRYPT || MCUBOOT_USE_MBED_TLS || MCUBOOT_USE_CC310) && !MCUBOOT_USE_PSA_CRYPTO */
136136

137+
#ifndef MCUBOOT_USE_PSA_CRYPTO
137138
/*
138139
* cp points to ASN1 string containing an integer.
139140
* Verify the tag, and that the length is 32 bytes. Helper function.
@@ -183,6 +184,7 @@ static int bootutil_decode_sig(uint8_t signature[NUM_ECC_BYTES * 2], uint8_t *cp
183184
}
184185
return 0;
185186
}
187+
#endif /* !MCUBOOT_USE_PSA_CRYPTO */
186188

187189
#if defined(MCUBOOT_USE_TINYCRYPT)
188190
typedef uintptr_t bootutil_ecdsa_context;

0 commit comments

Comments
 (0)