diff options
author | Richard Levitte <levitte@openssl.org> | 2002-02-20 18:03:07 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-02-20 18:03:07 +0000 |
commit | b3dfaaa143d06eb23ec0985ba37bd9ab24bee6bb (patch) | |
tree | 446c34f771f45a446b06d726a93363d193216794 /apps/gendsa.c | |
parent | 5b7848a34578e5819e9bb335e9da0e9d04ab921d (diff) | |
download | openssl-b3dfaaa143d06eb23ec0985ba37bd9ab24bee6bb.tar.gz |
Add AES support in the applications that support -des and -des3.
Diffstat (limited to 'apps/gendsa.c')
-rw-r--r-- | apps/gendsa.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/gendsa.c b/apps/gendsa.c index 6b74142991..ebee7f0269 100644 --- a/apps/gendsa.c +++ b/apps/gendsa.c @@ -130,6 +130,14 @@ int MAIN(int argc, char **argv) else if (strcmp(*argv,"-idea") == 0) enc=EVP_idea_cbc(); #endif +#ifndef OPENSSL_NO_AES + else if (strcmp(*argv,"-aes128") == 0) + enc=EVP_aes_128_cbc(); + else if (strcmp(*argv,"-aes192") == 0) + enc=EVP_aes_192_cbc(); + else if (strcmp(*argv,"-aes256") == 0) + enc=EVP_aes_256_cbc(); +#endif else if (**argv != '-' && dsaparams == NULL) { dsaparams = *argv; @@ -152,6 +160,10 @@ bad: #ifndef OPENSSL_NO_IDEA BIO_printf(bio_err," -idea - encrypt the generated key with IDEA in cbc mode\n"); #endif +#ifndef OPENSSL_NO_AES + BIO_printf(bio_err," -aes128, -aes192, -aes256\n"); + BIO_printf(bio_err," encrypt PEM output with cbc aes\n"); +#endif BIO_printf(bio_err," -engine e - use engine e, possibly a hardware device.\n"); BIO_printf(bio_err," -rand file%cfile%c...\n", LIST_SEPARATOR_CHAR, LIST_SEPARATOR_CHAR); BIO_printf(bio_err," - load the file (or the files in the directory) into\n"); |