Sfoglia il codice sorgente

Fix file IO ambiguity for UI scripts

The variable sm should contain the signature and the message,
not the message and the signature (i.e. the order is crucial).
master
Joost Rijneveld 7 anni fa
parent
commit
c803860cf8
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: A4FE39CF49CBC553
4 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. +1
    -1
      test/xmss_open.c
  2. +1
    -1
      test/xmss_sign.c
  3. +1
    -1
      test/xmssmt_open.c
  4. +1
    -1
      test/xmssmt_sign.c

+ 1
- 1
test/xmss_open.c Vedi File

@@ -12,7 +12,7 @@ int main(int argc, char **argv) {

if (argc != 2) {
fprintf(stderr, "Expected keypair filename as only parameter, "
"and the message + signature via stdin.\n"
"and the signature + message via stdin.\n"
"Keypair file needs only to contain the public key.\n"
"The return code 0 indicates verification success.\n");
return -1;


+ 1
- 1
test/xmss_sign.c Vedi File

@@ -18,7 +18,7 @@ int main(int argc, char **argv) {
return -1;
}

keypair = fopen(argv[1], "rb");
keypair = fopen(argv[1], "r+b");
if (keypair == NULL) {
fprintf(stderr, "Could not open keypair file.\n");
return -1;


+ 1
- 1
test/xmssmt_open.c Vedi File

@@ -12,7 +12,7 @@ int main(int argc, char **argv) {

if (argc != 2) {
fprintf(stderr, "Expected keypair filename as only parameter, "
"and the message + signature via stdin.\n"
"and the signature + message via stdin.\n"
"Keypair file needs only to contain the public key.\n"
"The return code 0 indicates verification success.\n");
return -1;


+ 1
- 1
test/xmssmt_sign.c Vedi File

@@ -18,7 +18,7 @@ int main(int argc, char **argv) {
return -1;
}

keypair = fopen(argv[1], "rb");
keypair = fopen(argv[1], "r+b");
if (keypair == NULL) {
fprintf(stderr, "Could not open keypair file.\n");
return -1;


Caricamento…
Annulla
Salva