summaryrefslogtreecommitdiff
path: root/cipher/dsa.c
diff options
context:
space:
mode:
authorMoritz Schulte <mo@g10code.com>2003-04-27 19:18:27 +0000
committerMoritz Schulte <mo@g10code.com>2003-04-27 19:18:27 +0000
commit55ddea17ae11d69b6fc1a4ff402e5e5b011d28af (patch)
treeb6bf227e7f8b88d0f6d317101490f694566da71c /cipher/dsa.c
parent5238a4c07992095083091dd1d52fd81502f141b9 (diff)
downloadlibgcrypt-55ddea17ae11d69b6fc1a4ff402e5e5b011d28af.tar.gz
2003-04-27 Moritz Schulte <moritz@g10code.com>
* pubkey.c (gcry_pubkey_register_default): New macro `pubkey_use_dummy', use it. * elgamal.c (elg_names): New variable. (pubkey_spec_elg): Include elg_names. * dsa.c (dsa_names): New variable. (pubkey_spec_dsa): Include dsa_names. * rsa.c (rsa_names): New variable. (pubkey_spec_rsa): Include rsa_names. * pubkey.c (gcry_pubkey_lookup_func_name): Compare name also with the names listed in `sexp_names'. 2003-04-24 Moritz Schulte <moritz@g10code.com> * pubkey.c (sexp_to_key): New variables: module, pubkey. Adjusted to new module interface. (sexp_to_key): Changend type of argument `retalgo' from `int *' to `GcryModule **'. Adjusted all callers. Removed argument: r_algotblidx. (sexp_to_sig): Changend type of argument `retalgo' from `int *' to `GcryModule **'. Adjusted all callers. (sexp_to_enc): Likewise. (pubkey_get_npkey, pubkey_get_nskey, pubkey_get_nsig, pubkey_get_nenc): Use strlen to find out the number. * rsa.c: Adjust pubkey_spec_rsa to new internal interface. * dsa.c: Likewise. * elgamal.c: Likewise.
Diffstat (limited to 'cipher/dsa.c')
-rw-r--r--cipher/dsa.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/cipher/dsa.c b/cipher/dsa.c
index b2adae4e..4bc2cd03 100644
--- a/cipher/dsa.c
+++ b/cipher/dsa.c
@@ -448,9 +448,17 @@ _gcry_dsa_get_nbits( int algo, MPI *pkey )
return mpi_get_nbits( pkey[0] );
}
+static char *dsa_names[] =
+ {
+ "dsa",
+ "openpgp-dsa",
+ NULL,
+ };
+
GcryPubkeySpec pubkey_spec_dsa =
{
- "DSA", GCRY_PK_DSA, 4, 5, 0, 2,
+ "DSA", dsa_names, GCRY_PK_DSA,
+ "pqgy", "pqgyx", "", "rs", "pqgy",
GCRY_PK_USAGE_SIGN,
_gcry_dsa_generate,
_gcry_dsa_check_secret_key,