diff options
author | lloyd <[email protected]> | 2008-10-11 20:55:02 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-10-11 20:55:02 +0000 |
commit | 7d20d06825918fbcaaf219e4bb8e0fdfc31c5a8b (patch) | |
tree | 8aae7024211e71329b613b0aa128b9cc5d5da8ac /src/cert/x509/x509_ca.cpp | |
parent | e109718fc918feaf07f7bb70cf802d0cf32398db (diff) |
Default to using SHA-1 with ECDSA in X.509 signatures
Diffstat (limited to 'src/cert/x509/x509_ca.cpp')
-rw-r--r-- | src/cert/x509/x509_ca.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cert/x509/x509_ca.cpp b/src/cert/x509/x509_ca.cpp index f4edcc479..82f854649 100644 --- a/src/cert/x509/x509_ca.cpp +++ b/src/cert/x509/x509_ca.cpp @@ -258,6 +258,11 @@ PK_Signer* choose_sig_format(const Private_Key& key, padding = "EMSA1(SHA-160)"; format = DER_SEQUENCE; } + else if(algo_name == "ECDSA") + { + padding = "EMSA1_BSI(SHA-160)"; + format = IEEE_1363; + } else throw Invalid_Argument("Unknown X.509 signing key type: " + algo_name); |