Skip to content

Commit 36d3a58

Browse files
author
Andrzej Kurek
committed
Rename atecc608a_genKey to atecc608a_generate_key
1 parent b22e58f commit 36d3a58

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

atecc608a_utils.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
#include "atca_basic.h"
2525

26-
psa_status_t atecc608a_get_serial_number(uint8_t* buffer,
26+
psa_status_t atecc608a_get_serial_number(uint8_t *buffer,
2727
size_t buffer_size,
2828
size_t *buffer_length)
2929
{
@@ -62,7 +62,7 @@ psa_status_t atecc608a_check_config_locked()
6262
return status;
6363
}
6464

65-
psa_status_t atecc608a_genKey(uint16_t slot, uint8_t* pubkey, size_t pubkey_size)
65+
psa_status_t atecc608a_generate_key(uint16_t slot, uint8_t *pubkey, size_t pubkey_size)
6666
{
6767
psa_status_t status = PSA_ERROR_GENERIC_ERROR;
6868
if (pubkey != NULL && pubkey_size < ATCA_PUB_KEY_SIZE)

atecc608a_utils.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@
5656
#define ASSERT_SUCCESS_PSA(expression) ASSERT_STATUS(expression, PSA_SUCCESS, \
5757
ASSERT_result)
5858

59-
psa_status_t atecc608a_get_serial_number(uint8_t* buffer, size_t buffer_size,
59+
psa_status_t atecc608a_get_serial_number(uint8_t *buffer, size_t buffer_size,
6060
size_t *buffer_length);
6161

6262
psa_status_t atecc608a_check_config_locked();
6363

64-
psa_status_t atecc608a_genKey(uint16_t slot, uint8_t* pubkey, size_t pubkey_size);
64+
psa_status_t atecc608a_generate_key(uint16_t slot, uint8_t *pubkey, size_t pubkey_size);
6565

6666
#endif /* ATECC608A_SE_H */

main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ int main(void)
147147

148148
atecc608a_print_serial_number();
149149
atecc608a_print_config_zone();
150-
ASSERT_SUCCESS_PSA(atecc608a_genKey(0, pubkey, pubkey_size));
150+
ASSERT_SUCCESS_PSA(atecc608a_generate_key(0, pubkey, pubkey_size));
151151
atcab_printbin_label("pubKey generated: ", pubkey, ATCA_PUB_KEY_SIZE);
152152

153153
ASSERT_SUCCESS_PSA(atecc608a_hash_sha256(hash_input1,

0 commit comments

Comments
 (0)