version 1.10, 1999/09/30 18:41:24 |
version 1.11, 1999/09/30 22:12:16 |
|
|
int cipher.h. */ |
int cipher.h. */ |
static char *cipher_names[] = |
static char *cipher_names[] = |
{ |
{ |
NULL, /* no none */ |
"none", |
NULL, /* no idea */ |
"idea", |
NULL, /* no des */ |
"des", |
"3des", |
"3des", |
NULL, /* no tss */ |
"tss", |
NULL, /* no rc4 */ |
"rc4", |
"blowfish" |
"blowfish" |
}; |
}; |
|
|
|
|
{ |
{ |
int i; |
int i; |
for (i = 0; i < sizeof(cipher_names) / sizeof(cipher_names[0]); i++) |
for (i = 0; i < sizeof(cipher_names) / sizeof(cipher_names[0]); i++) |
if (cipher_names[i] != NULL && strcmp(cipher_names[i], name) == 0) |
if (strcmp(cipher_names[i], name) == 0 && |
|
(cipher_mask() & (1 << i))) |
return i; |
return i; |
return -1; |
return -1; |
} |
} |