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/genrsa.c | |
parent | 5b7848a34578e5819e9bb335e9da0e9d04ab921d (diff) |
Add AES support in the applications that support -des and -des3.
Diffstat (limited to 'apps/genrsa.c')
-rw-r--r-- | apps/genrsa.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/genrsa.c b/apps/genrsa.c index b5ae1beacf..5a58235e0c 100644 --- a/apps/genrsa.c +++ b/apps/genrsa.c @@ -139,6 +139,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 (strcmp(*argv,"-passout") == 0) { if (--argc < 1) goto bad; @@ -158,6 +166,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," -out file output the key to 'file\n"); BIO_printf(bio_err," -passout arg output file pass phrase source\n"); BIO_printf(bio_err," -f4 use F4 (0x10001) for the E value\n"); |