genrsa.c (160814) | genrsa.c (162911) |
---|---|
1/* apps/genrsa.c */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 154 unchanged lines hidden (view full) --- 163#ifndef OPENSSL_NO_AES 164 else if (strcmp(*argv,"-aes128") == 0) 165 enc=EVP_aes_128_cbc(); 166 else if (strcmp(*argv,"-aes192") == 0) 167 enc=EVP_aes_192_cbc(); 168 else if (strcmp(*argv,"-aes256") == 0) 169 enc=EVP_aes_256_cbc(); 170#endif | 1/* apps/genrsa.c */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 154 unchanged lines hidden (view full) --- 163#ifndef OPENSSL_NO_AES 164 else if (strcmp(*argv,"-aes128") == 0) 165 enc=EVP_aes_128_cbc(); 166 else if (strcmp(*argv,"-aes192") == 0) 167 enc=EVP_aes_192_cbc(); 168 else if (strcmp(*argv,"-aes256") == 0) 169 enc=EVP_aes_256_cbc(); 170#endif |
171#ifndef OPENSSL_NO_CAMELLIA 172 else if (strcmp(*argv,"-camellia128") == 0) 173 enc=EVP_camellia_128_cbc(); 174 else if (strcmp(*argv,"-camellia192") == 0) 175 enc=EVP_camellia_192_cbc(); 176 else if (strcmp(*argv,"-camellia256") == 0) 177 enc=EVP_camellia_256_cbc(); 178#endif |
|
171 else if (strcmp(*argv,"-passout") == 0) 172 { 173 if (--argc < 1) goto bad; 174 passargout= *(++argv); 175 } 176 else 177 break; 178 argv++; --- 7 unchanged lines hidden (view full) --- 186 BIO_printf(bio_err," -des3 encrypt the generated key with DES in ede cbc mode (168 bit key)\n"); 187#ifndef OPENSSL_NO_IDEA 188 BIO_printf(bio_err," -idea encrypt the generated key with IDEA in cbc mode\n"); 189#endif 190#ifndef OPENSSL_NO_AES 191 BIO_printf(bio_err," -aes128, -aes192, -aes256\n"); 192 BIO_printf(bio_err," encrypt PEM output with cbc aes\n"); 193#endif | 179 else if (strcmp(*argv,"-passout") == 0) 180 { 181 if (--argc < 1) goto bad; 182 passargout= *(++argv); 183 } 184 else 185 break; 186 argv++; --- 7 unchanged lines hidden (view full) --- 194 BIO_printf(bio_err," -des3 encrypt the generated key with DES in ede cbc mode (168 bit key)\n"); 195#ifndef OPENSSL_NO_IDEA 196 BIO_printf(bio_err," -idea encrypt the generated key with IDEA in cbc mode\n"); 197#endif 198#ifndef OPENSSL_NO_AES 199 BIO_printf(bio_err," -aes128, -aes192, -aes256\n"); 200 BIO_printf(bio_err," encrypt PEM output with cbc aes\n"); 201#endif |
202#ifndef OPENSSL_NO_CAMELLIA 203 BIO_printf(bio_err," -camellia128, -camellia192, -camellia256\n"); 204 BIO_printf(bio_err," encrypt PEM output with cbc camellia\n"); 205#endif |
|
194 BIO_printf(bio_err," -out file output the key to 'file\n"); 195 BIO_printf(bio_err," -passout arg output file pass phrase source\n"); 196 BIO_printf(bio_err," -f4 use F4 (0x10001) for the E value\n"); 197 BIO_printf(bio_err," -3 use 3 for the E value\n"); 198#ifndef OPENSSL_NO_ENGINE 199 BIO_printf(bio_err," -engine e use engine e, possibly a hardware device.\n"); 200#endif 201 BIO_printf(bio_err," -rand file%cfile%c...\n", LIST_SEPARATOR_CHAR, LIST_SEPARATOR_CHAR); --- 107 unchanged lines hidden --- | 206 BIO_printf(bio_err," -out file output the key to 'file\n"); 207 BIO_printf(bio_err," -passout arg output file pass phrase source\n"); 208 BIO_printf(bio_err," -f4 use F4 (0x10001) for the E value\n"); 209 BIO_printf(bio_err," -3 use 3 for the E value\n"); 210#ifndef OPENSSL_NO_ENGINE 211 BIO_printf(bio_err," -engine e use engine e, possibly a hardware device.\n"); 212#endif 213 BIO_printf(bio_err," -rand file%cfile%c...\n", LIST_SEPARATOR_CHAR, LIST_SEPARATOR_CHAR); --- 107 unchanged lines hidden --- |