projects
/
tfcrypt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
-O iobs: exempt for all stream ciphers or plain IO
[tfcrypt.git]
/
tfc_misc.c
diff --git
a/tfc_misc.c
b/tfc_misc.c
index 5a6c53b213510b0cbc3867bfe8c5f001cb273066..b140a8247125d616e97d331056ae5a64c43bbb40 100644
(file)
--- a/
tfc_misc.c
+++ b/
tfc_misc.c
@@
-102,6
+102,17
@@
const char *tfc_modename(int mode)
return NULL;
}
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;
void tfc_getcurtime(tfc_useconds *tx)
{
struct timespec t;