Sync with tfcipher
[tfcrypt.git] / tfc_misc.c
index 5a6c53b213510b0cbc3867bfe8c5f001cb273066..01998f2f13a877e451fd007cfac347282a2c896d 100644 (file)
@@ -102,6 +102,16 @@ const char *tfc_modename(int mode)
        return NULL;
 }
 
+tfc_yesno tfc_is_freestream(int mode)
+{
+       switch (mode) {
+               case TFC_MODE_PLAIN:
+               case TFC_MODE_STREAM: return YES;
+       }
+
+       return NO;
+}
+
 void tfc_getcurtime(tfc_useconds *tx)
 {
        struct timespec t;