aboutsummaryrefslogtreecommitdiff
path: root/src/io
diff options
context:
space:
mode:
authorJ08nY2017-09-07 16:22:22 +0200
committerJ08nY2017-09-07 16:22:22 +0200
commit49a9aee1b0b997f874f0fea2d45d4f6fdf1af325 (patch)
tree30eed1d630fe3bbe27670d4403d8efbf8d3585c1 /src/io
parent964395cd920883645a3f065a0fcf6785b9a85acc (diff)
downloadecgen-49a9aee1b0b997f874f0fea2d45d4f6fdf1af325.tar.gz
ecgen-49a9aee1b0b997f874f0fea2d45d4f6fdf1af325.tar.zst
ecgen-49a9aee1b0b997f874f0fea2d45d4f6fdf1af325.zip
Paritially implement W computation in ANSI X9.62 algo.
Diffstat (limited to 'src/io')
-rw-r--r--src/io/cli.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/io/cli.c b/src/io/cli.c
index 4a75646..c37652c 100644
--- a/src/io/cli.c
+++ b/src/io/cli.c
@@ -201,6 +201,8 @@ error_t cli_parse(int key, char *arg, struct argp_state *state) {
cfg->from_seed = true;
if (arg) {
// ANSI X9.62 specifies seed as at least 160 bits in length.
+ // TODO: validate that it is a hex string, or what actually? It
+ // can be any PARI int. so 123465689 or 0xab45 or 0b1101100100
if (strlen(arg) < 40) {
argp_failure(
state, 1, 0,