summaryrefslogtreecommitdiff
path: root/fltrimpl.h
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2003-06-06 02:34:03 +0000
committerweidai <weidai11@users.noreply.github.com>2003-06-06 02:34:03 +0000
commit6c4437d03df6a1beadfadfc7c5388005c69665db (patch)
tree22ac172cd2a9920b7d33711a25947c5c98e8cef2 /fltrimpl.h
parent2f50e8eac958f5a1bf7be05aeac015e5ee400927 (diff)
downloadcryptopp-git-6c4437d03df6a1beadfadfc7c5388005c69665db.tar.gz
sync with private branch
Diffstat (limited to 'fltrimpl.h')
-rw-r--r--fltrimpl.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/fltrimpl.h b/fltrimpl.h
index a35e68b0..60c827be 100644
--- a/fltrimpl.h
+++ b/fltrimpl.h
@@ -39,4 +39,15 @@
#define FILTER_OUTPUT_BYTE(site, output) \
FILTER_OUTPUT(site, &(const byte &)(byte)output, 1, 0)
+#define FILTER_OUTPUT2_MODIFIABLE(site, statement, output, length, messageEnd) \
+ {\
+ case site: \
+ statement; \
+ if (OutputModifiable(site, output, length, messageEnd, blocking)) \
+ return STDMAX(1U, (unsigned int)length-m_inputPosition);\
+ }
+
+#define FILTER_OUTPUT_MODIFIABLE(site, output, length, messageEnd) \
+ FILTER_OUTPUT2_MODIFIABLE(site, 0, output, length, messageEnd)
+
#endif