renamed ENCR_TWOFISH and ENCR_SERPENT to ENCR_TWOFISH_CBC and ENCR_SERPENT_CBC, respectively
This commit is contained in:
@@ -46,12 +46,12 @@ ENUM_NEXT(encryption_algorithm_names, ENCR_CAMELLIA_CBC, ENCR_CAMELLIA_CCM_ICV16
|
|||||||
"CAMELLIA_CCM_ICV8",
|
"CAMELLIA_CCM_ICV8",
|
||||||
"CAMELLIA_CCM_ICV12",
|
"CAMELLIA_CCM_ICV12",
|
||||||
"CAMELLIA_CCM_ICV16");
|
"CAMELLIA_CCM_ICV16");
|
||||||
ENUM_NEXT(encryption_algorithm_names, ENCR_UNDEFINED, ENCR_TWOFISH, ENCR_CAMELLIA_CCM_ICV16,
|
ENUM_NEXT(encryption_algorithm_names, ENCR_UNDEFINED, ENCR_TWOFISH_CBC, ENCR_CAMELLIA_CCM_ICV16,
|
||||||
"UNDEFINED",
|
"UNDEFINED",
|
||||||
"DES_ECB",
|
"DES_ECB",
|
||||||
"SERPENT",
|
"SERPENT_CBC",
|
||||||
"TWOFISH");
|
"TWOFISH_CBC");
|
||||||
ENUM_END(encryption_algorithm_names, ENCR_TWOFISH);
|
ENUM_END(encryption_algorithm_names, ENCR_TWOFISH_CBC);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Described in header.
|
* Described in header.
|
||||||
|
|||||||
@@ -57,8 +57,8 @@ enum encryption_algorithm_t {
|
|||||||
ENCR_CAMELLIA_CCM_ICV16 = 27,
|
ENCR_CAMELLIA_CCM_ICV16 = 27,
|
||||||
ENCR_UNDEFINED = 1024,
|
ENCR_UNDEFINED = 1024,
|
||||||
ENCR_DES_ECB = 1025,
|
ENCR_DES_ECB = 1025,
|
||||||
ENCR_SERPENT = 1026,
|
ENCR_SERPENT_CBC = 1026,
|
||||||
ENCR_TWOFISH = 1027
|
ENCR_TWOFISH_CBC = 1027
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ plugin_t *plugin_create()
|
|||||||
|
|
||||||
this->public.plugin.destroy = (void(*)(plugin_t*))destroy;
|
this->public.plugin.destroy = (void(*)(plugin_t*))destroy;
|
||||||
|
|
||||||
lib->crypto->add_crypter(lib->crypto, ENCR_SERPENT,
|
lib->crypto->add_crypter(lib->crypto, ENCR_SERPENT_CBC,
|
||||||
(crypter_constructor_t)serpent_crypter_create);
|
(crypter_constructor_t)serpent_crypter_create);
|
||||||
|
|
||||||
return &this->public.plugin;
|
return &this->public.plugin;
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ plugin_t *plugin_create()
|
|||||||
|
|
||||||
this->public.plugin.destroy = (void(*)(plugin_t*))destroy;
|
this->public.plugin.destroy = (void(*)(plugin_t*))destroy;
|
||||||
|
|
||||||
lib->crypto->add_crypter(lib->crypto, ENCR_TWOFISH,
|
lib->crypto->add_crypter(lib->crypto, ENCR_TWOFISH_CBC,
|
||||||
(crypter_constructor_t)twofish_crypter_create);
|
(crypter_constructor_t)twofish_crypter_create);
|
||||||
|
|
||||||
return &this->public.plugin;
|
return &this->public.plugin;
|
||||||
|
|||||||
Reference in New Issue
Block a user