mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpg: Allow predefined names as answer to the keygen.algo prompt.
* g10/keygen.c (ask_algo): Add list of strings.
--
Signed-off-by: Werner Koch <wk@gnupg.org>
(backported from commit b1d5ed6ac8
)
This commit is contained in:
parent
2424028fd9
commit
b2359db21c
2 changed files with 40 additions and 10 deletions
28
doc/DETAILS
28
doc/DETAILS
|
@ -1301,3 +1301,31 @@ This can be implemented using Hurd's translator mechanism.
|
|||
However, I think the whole key server stuff has to be re-thought;
|
||||
I have some ideas and probably create a white paper.
|
||||
|
||||
|
||||
Algorithm names for the "keygen.algo" prompt
|
||||
============================================
|
||||
|
||||
When using a --command-fd controlled key generation or "addkey"
|
||||
there is way to know the number to enter on the "keygen.algo"
|
||||
prompt. The displayed numbers are for human reception and may
|
||||
change with releases. To provide a stable way to enter a desired
|
||||
algorithm choice the prompt also accepts predefined names for the
|
||||
algorithms, which will not change.
|
||||
|
||||
| Name | No | Description |
|
||||
|---------+----+---------------------------------|
|
||||
| rsa+rsa | 1 | RSA and RSA (default) |
|
||||
| dsa+elg | 2 | DSA and Elgamal |
|
||||
| dsa | 3 | DSA (sign only) |
|
||||
| rsa/s | 4 | RSA (sign only) |
|
||||
| elg | 5 | Elgamal (encrypt only) |
|
||||
| rsa/e | 6 | RSA (encrypt only) |
|
||||
| dsa/* | 7 | DSA (set your own capabilities) |
|
||||
| rsa/* | 8 | RSA (set your own capabilities) |
|
||||
|
||||
If one of the "foo/*" names are used a "keygen.flags" prompt needs
|
||||
to be answered as well. Instead of toggling the predefined flags,
|
||||
it is also possible to set them direct: Use a "=" character
|
||||
directly followed by a comination of "a" (for authentication), "s"
|
||||
(for signing), or "c" (for certification).
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue