aesni: Added AES_ECB support
This commit is contained in:
committed by
Tobias Brunner
parent
1352413272
commit
20f3d04b13
@@ -47,13 +47,14 @@ ENUM_NEXT(encryption_algorithm_names, ENCR_CAMELLIA_CBC, ENCR_CHACHA20_POLY1305,
|
||||
"CAMELLIA_CCM_12",
|
||||
"CAMELLIA_CCM_16",
|
||||
"CHACHA20_POLY1305");
|
||||
ENUM_NEXT(encryption_algorithm_names, ENCR_UNDEFINED, ENCR_RC2_CBC, ENCR_CHACHA20_POLY1305,
|
||||
ENUM_NEXT(encryption_algorithm_names, ENCR_UNDEFINED, ENCR_AES_ECB, ENCR_CHACHA20_POLY1305,
|
||||
"UNDEFINED",
|
||||
"DES_ECB",
|
||||
"SERPENT_CBC",
|
||||
"TWOFISH_CBC",
|
||||
"RC2_CBC");
|
||||
ENUM_END(encryption_algorithm_names, ENCR_RC2_CBC);
|
||||
"RC2_CBC",
|
||||
"AES_ECB");
|
||||
ENUM_END(encryption_algorithm_names, ENCR_AES_ECB);
|
||||
|
||||
/*
|
||||
* Described in header.
|
||||
|
||||
@@ -64,6 +64,7 @@ enum encryption_algorithm_t {
|
||||
ENCR_TWOFISH_CBC = 1027,
|
||||
/* see macros below to handle RC2 (effective) key length */
|
||||
ENCR_RC2_CBC = 1028,
|
||||
ENCR_AES_ECB = 1029,
|
||||
};
|
||||
|
||||
#define DES_BLOCK_SIZE 8
|
||||
|
||||
@@ -61,6 +61,7 @@ iv_gen_t* iv_gen_create_for_alg(encryption_algorithm_t alg)
|
||||
case ENCR_DES_ECB:
|
||||
case ENCR_DES_IV32:
|
||||
case ENCR_DES_IV64:
|
||||
case ENCR_AES_ECB:
|
||||
break;
|
||||
}
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user