openssl: Support of AES-CFB encryption

This commit is contained in:
Andreas Steffen
2021-12-06 12:52:37 +01:00
parent dcaf9b38f3
commit 695a04d146
8 changed files with 158 additions and 3 deletions
+4 -3
View File
@@ -47,14 +47,15 @@ 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_AES_ECB, ENCR_CHACHA20_POLY1305,
ENUM_NEXT(encryption_algorithm_names, ENCR_UNDEFINED, ENCR_AES_CFB, ENCR_CHACHA20_POLY1305,
"UNDEFINED",
"DES_ECB",
"SERPENT_CBC",
"TWOFISH_CBC",
"RC2_CBC",
"AES_ECB");
ENUM_END(encryption_algorithm_names, ENCR_AES_ECB);
"AES_ECB",
"AES_CFB");
ENUM_END(encryption_algorithm_names, ENCR_AES_CFB);
/*
* Described in header.
@@ -65,6 +65,7 @@ enum encryption_algorithm_t {
/* see macros below to handle RC2 (effective) key length */
ENCR_RC2_CBC = 1028,
ENCR_AES_ECB = 1029,
ENCR_AES_CFB = 1030,
};
#define DES_BLOCK_SIZE 8
+1
View File
@@ -40,6 +40,7 @@ iv_gen_t* iv_gen_create_for_alg(encryption_algorithm_t alg)
case ENCR_SERPENT_CBC:
case ENCR_TWOFISH_CBC:
case ENCR_RC2_CBC:
case ENCR_AES_CFB:
return iv_gen_rand_create();
case ENCR_AES_CTR:
case ENCR_AES_CCM_ICV8: