|
|
|
@ -2,8 +2,8 @@
|
|
|
|
|
#include <assert.h>
|
|
|
|
|
#include "bignum.h"
|
|
|
|
|
#include "ecdsa.h"
|
|
|
|
|
#include "rand.h"
|
|
|
|
|
#include "bip32.h"
|
|
|
|
|
#include "rand.h"
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* This program prints the contents of the ecdsa_curve.cp array.
|
|
|
|
@ -17,7 +17,8 @@ int main(int argc, char **argv) {
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
const char *name = argv[1];
|
|
|
|
|
const curve_info *curve = get_curve_by_name(name);
|
|
|
|
|
const curve_info *info = get_curve_by_name(name);
|
|
|
|
|
const ecdsa_curve *curve = info->params;
|
|
|
|
|
if (curve == 0) {
|
|
|
|
|
printf("Unknown curve '%s'\n", name);
|
|
|
|
|
return 1;
|
|
|
|
|