-O iobs: exempt for all stream ciphers or plain IO
[tfcrypt.git] / tfc_misc.c
index 5a6c53b213510b0cbc3867bfe8c5f001cb273066..b140a8247125d616e97d331056ae5a64c43bbb40 100644 (file)
@@ -102,6 +102,17 @@ const char *tfc_modename(int mode)
        return NULL;
 }
 
+tfc_yesno tfc_is_stream(int mode)
+{
+       switch (mode) {
+               case TFC_MODE_PLAIN:
+               case TFC_MODE_CTR:
+               case TFC_MODE_STREAM: return YES;
+       }
+
+       return NO;
+}
+
 void tfc_getcurtime(tfc_useconds *tx)
 {
        struct timespec t;