diff options
Diffstat (limited to 'agent/protect.c')
-rw-r--r-- | agent/protect.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/agent/protect.c b/agent/protect.c index 795d06231..d0a5fe9e3 100644 --- a/agent/protect.c +++ b/agent/protect.c @@ -43,7 +43,7 @@ /* A table containing the information needed to create a protected - private key */ + private key. */ static struct { const char *algo; const char *parmlist; @@ -52,6 +52,8 @@ static struct { { "rsa", "nedpqu", 2, 5 }, { "dsa", "pqgyx", 4, 4 }, { "elg", "pgyx", 3, 3 }, + { "ecdsa","cqd", 2, 2 }, + { "ecdh", "cqpd", 3, 3 }, { NULL } }; @@ -488,7 +490,7 @@ agent_protect (const unsigned char *plainkey, const char *passphrase, depth--; hash_end = s; s++; - /* skip to the end of the S-exp */ + /* Skip to the end of the S-expression. */ assert (depth == 1); rc = sskip (&s, &depth); if (rc) |