Mercurial > dropbear
comparison session.h @ 1673:e0871128e61f
CBC mode cleanup (#95)
* Fix CBC mode can't be fully disabled
* Fix CBC mode can't be the only mode
author | Vladislav Grishenko <themiron@users.noreply.github.com> |
---|---|
date | Mon, 25 May 2020 20:55:13 +0500 |
parents | 3a97f14c0235 |
children | 41bf8f216644 |
comparison
equal
deleted
inserted
replaced
1672:3a97f14c0235 | 1673:e0871128e61f |
---|---|
77 #ifndef DISABLE_ZLIB | 77 #ifndef DISABLE_ZLIB |
78 z_streamp zstream; | 78 z_streamp zstream; |
79 #endif | 79 #endif |
80 /* actual keys */ | 80 /* actual keys */ |
81 union { | 81 union { |
82 #if DROPBEAR_ENABLE_CBC_MODE | |
82 symmetric_CBC cbc; | 83 symmetric_CBC cbc; |
84 #endif | |
83 #if DROPBEAR_ENABLE_CTR_MODE | 85 #if DROPBEAR_ENABLE_CTR_MODE |
84 symmetric_CTR ctr; | 86 symmetric_CTR ctr; |
85 #endif | 87 #endif |
86 #if DROPBEAR_ENABLE_GCM_MODE | 88 #if DROPBEAR_ENABLE_GCM_MODE |
87 dropbear_gcm_state gcm; | 89 dropbear_gcm_state gcm; |