diff --git a/bindings/utility-scripts/error-analyzer.pl b/bindings/utility-scripts/error-analyzer.pl index 60b91c1..e97ae5d 100644 --- a/bindings/utility-scripts/error-analyzer.pl +++ b/bindings/utility-scripts/error-analyzer.pl @@ -115,7 +115,7 @@ sub parse_file { push @curcalls, $1; } pos = 0; - while (/(LASSO_[A-Z_]*_ERROR_[A-Z_]*|LASSO_ERROR_[A-Z_]*)/g) { + while (/(CRYPTIC_[A-Z_]*_ERROR_[A-Z_]*|CRYPTIC_ERROR_[A-Z_]*)/g) { push @curerrors, $1; } last MATCHING; diff --git a/cryptic/protocols/pok_schnorr/commitments_utils.c b/cryptic/protocols/pok_schnorr/commitments_utils.c index 1c93fdd..7398863 100644 --- a/cryptic/protocols/pok_schnorr/commitments_utils.c +++ b/cryptic/protocols/pok_schnorr/commitments_utils.c @@ -26,7 +26,7 @@ #include "commitments_utils.h" BIGNUM* -cryptic_get_dlrep(int nb_quantities, BIGNUM **quantities,BIGNUM **bases,BIGNUM *modulus) +cryptic_get_dlrep(int nb_quantities, BIGNUM **quantities, BIGNUM **bases, BIGNUM *modulus) { int rc = CRYPTIC_ERROR_UNDEFINED; diff --git a/cryptic/utils/print.c b/cryptic/utils/print.c index 05b8fe5..3baf70d 100644 --- a/cryptic/utils/print.c +++ b/cryptic/utils/print.c @@ -31,7 +31,9 @@ int cryptic_print_bn(char *prefix, BIGNUM *bn) { char *hex = NULL; - hex = BN_bn2hex(bn); + if(bn){ + hex = BN_bn2hex(bn); + } printf("%s%s\n", prefix, hex); OPENSSL_free(hex); return CRYPTIC_NO_ERROR;