CBC mode cleanup (#95)

* Fix CBC mode can't be fully disabled

* Fix CBC mode can't be the only mode
This commit is contained in:
Vladislav Grishenko
2020-05-25 20:55:13 +05:00
committed by GitHub
parent d3d0d60076
commit 61267f8503
3 changed files with 10 additions and 2 deletions

View File

@@ -79,7 +79,9 @@ struct key_context_directional {
#endif
/* actual keys */
union {
#if DROPBEAR_ENABLE_CBC_MODE
symmetric_CBC cbc;
#endif
#if DROPBEAR_ENABLE_CTR_MODE
symmetric_CTR ctr;
#endif