Skip to content

Commit 863a93a

Browse files
nordicjmcarlescufi
authored andcommitted
include: bl_crypto: Fix wrong order of parameters
The parameters listed are wrong Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
1 parent b13e7d9 commit 863a93a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

include/bl_crypto.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@ int bl_sha512_verify(const uint8_t *data, uint32_t data_len, const uint8_t *expe
235235
*
236236
* @param[in] hash The hash to validate against.
237237
* @param[in] hash_len The length of the hash.
238-
* @param[in] signature The signature to validate.
239238
* @param[in] public_key The public key to validate with.
239+
* @param[in] signature The signature to validate.
240240
*
241241
* @retval 0 The operation succeeded and the signature is valid for the
242242
* hash.
@@ -245,15 +245,15 @@ int bl_sha512_verify(const uint8_t *data, uint32_t data_len, const uint8_t *expe
245245
*/
246246
int bl_secp256r1_validate(const uint8_t *hash,
247247
uint32_t hash_len,
248-
const uint8_t *signature,
249-
const uint8_t *public_key);
248+
const uint8_t *public_key,
249+
const uint8_t *signature);
250250

251251
/* Typedef for use in EXT_API declaration */
252252
typedef int (*bl_secp256r1_validate_t)(
253253
const uint8_t *hash,
254254
uint32_t hash_len,
255-
const uint8_t *signature,
256-
const uint8_t *public_key);
255+
const uint8_t *public_key,
256+
const uint8_t *signature);
257257

258258
/**
259259
* @brief Validate an ed25519 signature.

0 commit comments

Comments
 (0)