PC Review


Reply
Thread Tools Rate Thread

CTS cipher mode

 
 
Martijn Bodeman
Guest
Posts: n/a
 
      6th Jul 2004
Hi,

While working on a derived SymmetricAlgorithm class I ran into issues
considering the CTS CipherMode. None of built-in classes seem to implement
this mode, and while it isn't even a recommended mode, I still wanted to add
support in my own class for backwards compatibility. I however can't seem to
get the final two blocks to be passed in TransformFinalBlock. In fact, when
the "to be" encrypted source stream equals a multiple of BlockSize the
method is not called at all, only TransformBlock. Because of this, I don't
know how to determine I have to perform the final transformation. In fact,
this does not only affect CTS mode, but it also affects padding in certain
situations for other modes (where padding of BlockSize in bits is required,
even if the stream length equals a multiple of BlockSize).

Does anybody have any idea where I am going wrong or is the only solution
inheriting CryptoStream and adding this support, only to hope MS will add
support for this later? I prefer not to write a custom inherited
CryptoStream.

Working with VS 2003, C#. I hope I made myself clear enough...

Kind regards/thanks in advance,

Martijn


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CIPHER.EXE WhatAboutBob Windows XP General 9 5th Mar 2009 02:16 PM
Length of encrypted output under 3DES in CBC cipher mode Sathyaish Microsoft C# .NET 1 5th Sep 2006 08:16 AM
Problem in 3DES decryption using CBC cipher mode Sathyaish Microsoft C# .NET 0 24th Aug 2006 07:58 AM
128 cipher Windows XP Internet Explorer 2 7th Nov 2003 01:16 PM
128 bit cipher danw Windows XP Internet Explorer 1 22nd Oct 2003 02:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:56 AM.