Skip to content

Commit

Permalink
Change the type of the parameter 'key' of 'cx_bls_key_gen' and 'ox_bl…
Browse files Browse the repository at this point in the history
…s_sign'
  • Loading branch information
srasoamiaramanana-ledger committed Oct 18, 2022
1 parent 8ee19ce commit 77145ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/ox_bls.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ SYSCALL cx_err_t cx_bls_key_gen(uint8_t mode,
const uint8_t *secret, size_t secret_len,
uint8_t *salt, size_t salt_len,
uint8_t *key_info, size_t key_info_len,
cx_ecfp_private_key_t *private_key,
cx_ecfp_384_private_key_t *private_key,
uint8_t *public_key,
size_t public_key_len);

Expand Down Expand Up @@ -123,7 +123,7 @@ SYSCALL cx_err_t cx_hash_to_field(const uint8_t *msg, size_t msg_len,
* - CX_INTERNAL_ERROR
* - CX_INVALID_PARAMETER
*/
SYSCALL cx_err_t ox_bls_sign(const cx_ecfp_private_key_t *key,
SYSCALL cx_err_t ox_bls_sign(const cx_ecfp_384_private_key_t *key,
const uint8_t * message,
size_t message_len,
uint8_t * signature,
Expand Down
4 changes: 2 additions & 2 deletions src/syscalls.c
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ cx_err_t cx_ecpoint_x448(const cx_bn_t u, const uint8_t *k, size_t k_len) {
#endif // HAVE_X448

#ifdef HAVE_BLS
cx_err_t ox_bls_sign(const cx_ecfp_private_key_t *key, const uint8_t * message, size_t message_len, uint8_t * signature, size_t signature_len) {
cx_err_t ox_bls_sign(const cx_ecfp_384_private_key_t *key, const uint8_t * message, size_t message_len, uint8_t * signature, size_t signature_len) {
unsigned int parameters [5];
parameters[0] = (unsigned int)key;
parameters[1] = (unsigned int)message;
Expand All @@ -851,7 +851,7 @@ cx_err_t cx_bls_key_gen(uint8_t mode,
const uint8_t *secret, size_t secret_len,
uint8_t *salt, size_t salt_len,
uint8_t *key_info, size_t key_info_len,
cx_ecfp_private_key_t *private_key,
cx_ecfp_384_private_key_t *private_key,
uint8_t *public_key,
size_t public_key_len) {
unsigned int parameters[10];
Expand Down

0 comments on commit 77145ed

Please sign in to comment.