@gustaw: "Hi all!
I have question connected to CPDecrypt CSP function. In MSDN there is 
written, that:
"If a block cipher is used and dwFlags is TRUE, any padding data must be 
removed before the plaintext is returned to the application.",
but I noticed, that even if dwFlags is not TRUE (dwFlags = 0) MS base 
CSPs and other smart card CSPs removes padding for block ciphers. Could 
anybody explain me why? It looks like proper CSP shuould always do it 
for all block ciphers! It is looks also a bit inconsistent for me. And 
finally it looks, that many smart card CSP vendors do not implement CSP 
API described in MSDN, but implement only behaviour of MS base CSP. Is 
it true?
Regards,
gustaw"
    @jbanes: "The padding should only be removed if the Final parameter is set to TRUE.
The documentation mentions the dwFlags parameterhowever this is a
documentation bug.
Regards,
John Banes
[Microsoft Security Developer]
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.
news:<email_address>
<quote>"
{'source': 'USENET', 'other_information': '{"reply_count": 1, "forum_name": "microsoft.public.platformsdk.security.20140611.mbox"}', 'file': 'data/output/usenet-microsoft.public.parquet'}