Skip to content

Commit de41bdc

Browse files
committed
Address Jacob's comments
1 parent dc0143a commit de41bdc

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

X9.146/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Tested with these wolfSSL build options:
3030

3131
```sh
3232
./autogen.sh # If cloned from GitHub
33-
./configure --enable-x9-146 --with-liboqs --enable-debug
33+
./configure --enable-dual-alg-certs --with-liboqs --enable-debug
3434
make
3535
sudo make install
3636
sudo ldconfig # required on some targets
@@ -355,7 +355,7 @@ Tested with these wolfSSL build options:
355355

356356
```sh
357357
./autogen.sh # If cloned from GitHub
358-
./configure --enable-x9-146 --enable-debug
358+
./configure --enable-dual-alg-certs --enable-debug
359359
make
360360
sudo make install
361361
sudo ldconfig # required on some targets

X9.146/gen_dual_keysig_cert.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,9 @@ static int do_certgen(int argc, char** argv)
212212
printf("Successfully read %d bytes from %s\n", altPrivSz, altPrivFile);
213213

214214
printf("Decoding the CA alt private key\n");
215-
wc_ecc_init(&altCaKey);
215+
ret = wc_ecc_init(&altCaKey);
216+
if (ret != 0) goto exit;
217+
216218
idx = 0;
217219
ret = wc_EccPrivateKeyDecode(altPrivBuf, &idx, &altCaKey,
218220
(word32)altPrivSz);

0 commit comments

Comments
 (0)