Skip to content

Commit

Permalink
fix wrong pk initialization in api sign
Browse files Browse the repository at this point in the history
  • Loading branch information
jaromil committed Sep 17, 2024
1 parent eb708fe commit e1f5d2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api_sign.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ int zenroom_sign_create(const char *algo, const char *key, const char *msg) {

// EDDSA
if(strcmp(algo,"eddsa")==0) {
ed25519_public_key pk = NULL;
ed25519_public_key pk;
const size_t sksize = sizeof(ed25519_secret_key);
size_t keylen= strlen(key) /2; // measure on hex
if(keylen!=sksize) {
Expand Down

0 comments on commit e1f5d2e

Please sign in to comment.