diff options
author | Werner Koch <[email protected]> | 1998-10-21 17:34:36 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 1998-10-21 17:34:36 +0000 |
commit | e309a875cb938dff76983d00552ebcc08a5e90c1 (patch) | |
tree | a10cbf247317e67fcb623d7c10dfa4b4c58edbfd /cipher/pubkey.c | |
parent | Snapshot release 0.4.2 (diff) | |
download | gnupg-e309a875cb938dff76983d00552ebcc08a5e90c1.tar.gz gnupg-e309a875cb938dff76983d00552ebcc08a5e90c1.zip |
Epxerimenta support for GDBM keyings.
Diffstat (limited to '')
-rw-r--r-- | cipher/pubkey.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cipher/pubkey.c b/cipher/pubkey.c index 62a48a6d8..514711700 100644 --- a/cipher/pubkey.c +++ b/cipher/pubkey.c @@ -309,6 +309,8 @@ pubkey_get_npkey( int algo ) if( pubkey_table[i].algo == algo ) return pubkey_table[i].npkey; } while( load_pubkey_modules() ); + if( is_RSA(algo) ) /* special hack, so that we are able to */ + return 2; /* see the RSA keyids */ return 0; } @@ -324,6 +326,8 @@ pubkey_get_nskey( int algo ) if( pubkey_table[i].algo == algo ) return pubkey_table[i].nskey; } while( load_pubkey_modules() ); + if( is_RSA(algo) ) /* special hack, so that we are able to */ + return 6; /* see the RSA keyids */ return 0; } @@ -339,6 +343,8 @@ pubkey_get_nsig( int algo ) if( pubkey_table[i].algo == algo ) return pubkey_table[i].nsig; } while( load_pubkey_modules() ); + if( is_RSA(algo) ) /* special hack, so that we are able to */ + return 1; /* see the RSA keyids */ return 0; } @@ -354,6 +360,8 @@ pubkey_get_nenc( int algo ) if( pubkey_table[i].algo == algo ) return pubkey_table[i].nenc; } while( load_pubkey_modules() ); + if( is_RSA(algo) ) /* special hack, so that we are able to */ + return 1; /* see the RSA keyids */ return 0; } @@ -370,6 +378,8 @@ pubkey_nbits( int algo, MPI *pkey ) if( pubkey_table[i].algo == algo ) return (*pubkey_table[i].get_nbits)( algo, pkey ); } while( load_pubkey_modules() ); + if( is_RSA(algo) ) /* we always wanna see the length of a key :-) */ + return mpi_get_nbits( pkey[0] ); return 0; } |