From 35f3f4048fd32942ee2f03e04b5de9ba54e00b7e Mon Sep 17 00:00:00 2001 From: weidai Date: Tue, 23 Oct 2007 17:27:28 +0000 Subject: improve documentation git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@412 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- filters.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'filters.h') diff --git a/filters.h b/filters.h index 750d976..ce6c734 100644 --- a/filters.h +++ b/filters.h @@ -251,13 +251,14 @@ protected: ByteQueue m_inQueue; }; -//! Filter Wrapper for StreamTransformation +//! Filter Wrapper for StreamTransformation, optionally handling padding/unpadding when needed class CRYPTOPP_DLL StreamTransformationFilter : public FilterWithBufferedInput, private FilterPutSpaceHelper { public: enum BlockPaddingScheme {NO_PADDING, ZEROS_PADDING, PKCS_PADDING, ONE_AND_ZEROS_PADDING, DEFAULT_PADDING}; /*! DEFAULT_PADDING means PKCS_PADDING if c.MandatoryBlockSize() > 1 && c.MinLastBlockSize() == 0 (e.g. ECB or CBC mode), - otherwise NO_PADDING (OFB, CFB, CTR, CBC-CTS modes) */ + otherwise NO_PADDING (OFB, CFB, CTR, CBC-CTS modes). + See http://www.weidai.com/scan-mirror/csp.html for details of the padding schemes. */ StreamTransformationFilter(StreamTransformation &c, BufferedTransformation *attachment = NULL, BlockPaddingScheme padding = DEFAULT_PADDING); void FirstPut(const byte *inString); -- cgit v1.2.1