started migration to encryption plugins
This commit is contained in:
@@ -152,7 +152,13 @@ Supported values for \fIalgo\fP:
|
||||
.IP "\fBdes\-cbc\fP" 12
|
||||
DES CBC encryption (key size = 56 bit).
|
||||
.IP "\fB3des\-cbc\fP" 12
|
||||
Triple DES CBC encryption (key size = 168 bit).
|
||||
Triple DES-EDE-CBC encryption (key size = 168 bit).
|
||||
.IP "\fBaes128\-cbc\fP" 12
|
||||
AES-CBC encryption (key size = 128 bit).
|
||||
.IP "\fBaes192\-cbc\fP" 12
|
||||
AES-CBC encryption (key size = 192 bit).
|
||||
.IP "\fBaes256\-cbc\fP" 12
|
||||
AES-CBC encryption (key size = 256 bit).
|
||||
.RE
|
||||
.PP
|
||||
.B \-o, \-\-out \fItype\fP[=\fIfilename\fP]
|
||||
|
||||
@@ -249,7 +249,8 @@ usage(const char *message)
|
||||
" --password (-p) <pw> challenge password\n"
|
||||
" - if pw is '%%prompt', password gets prompted for\n"
|
||||
" --algorithm (-a) <algo> use specified algorithm for PKCS#7 encryption\n"
|
||||
" <algo> = des-cbc | 3des-cbc (default: 3des-cbc)\n"
|
||||
" <algo> = des-cbc | 3des-cbc | aes128-cbc |\n"
|
||||
" aes192-cbc | aes256-cbc (default: 3des-cbc)\n"
|
||||
"\n"
|
||||
"Options for enrollment (cert):\n"
|
||||
" --url (-u) <url> url of the SCEP server\n"
|
||||
@@ -707,6 +708,18 @@ int main(int argc, char **argv)
|
||||
{
|
||||
pkcs7_symmetric_cipher = OID_3DES_EDE_CBC;
|
||||
}
|
||||
else if (strcaseeq("aes128-cbc", optarg))
|
||||
{
|
||||
pkcs7_symmetric_cipher = OID_AES128_CBC;
|
||||
}
|
||||
else if (strcaseeq("aes192-cbc", optarg))
|
||||
{
|
||||
pkcs7_symmetric_cipher = OID_AES192_CBC;
|
||||
}
|
||||
else if (strcaseeq("aes256-cbc", optarg))
|
||||
{
|
||||
pkcs7_symmetric_cipher = OID_AES256_CBC;
|
||||
}
|
||||
else
|
||||
{
|
||||
usage("invalid encryption algorithm specified");
|
||||
|
||||
Reference in New Issue
Block a user