diff --git a/X9.146/README.md b/X9.146/README.md index be5ae380..11cd3225 100644 --- a/X9.146/README.md +++ b/X9.146/README.md @@ -30,7 +30,7 @@ Tested with these wolfSSL build options: ```sh ./autogen.sh # If cloned from GitHub -./configure --enable-x9-146 --with-liboqs --enable-debug +./configure --enable-dual-alg-certs --with-liboqs --enable-debug make sudo make install sudo ldconfig # required on some targets @@ -355,7 +355,7 @@ Tested with these wolfSSL build options: ```sh ./autogen.sh # If cloned from GitHub -./configure --enable-x9-146 --enable-debug +./configure --enable-dual-alg-certs --enable-debug make sudo make install sudo ldconfig # required on some targets diff --git a/X9.146/gen_dual_keysig_cert.c b/X9.146/gen_dual_keysig_cert.c index 70d4b2e6..dc080373 100644 --- a/X9.146/gen_dual_keysig_cert.c +++ b/X9.146/gen_dual_keysig_cert.c @@ -212,7 +212,9 @@ static int do_certgen(int argc, char** argv) printf("Successfully read %d bytes from %s\n", altPrivSz, altPrivFile); printf("Decoding the CA alt private key\n"); - wc_ecc_init(&altCaKey); + ret = wc_ecc_init(&altCaKey); + if (ret != 0) goto exit; + idx = 0; ret = wc_EccPrivateKeyDecode(altPrivBuf, &idx, &altCaKey, (word32)altPrivSz);