Using Rijndael in Counter (CTR) Mode

  • Thread starter Thread starter rossum
  • Start date Start date
R

rossum

The .NET CipherMode enumeration does not include CTR mode. I want to
use Rijndael (AES) in CTR mode. Is there anything easily available in
C# to use or do I have to roll my own? I have found some code in
C++/.NET but not yet in C#.

Thanks,

rossum
 
The .NET CipherMode enumeration does not include CTR mode. I want to
use Rijndael (AES) in CTR mode. Is there anything easily available in
C# to use or do I have to roll my own? I have found some code in
C++/.NET but not yet in C#.

Thanks,

rossum
I have not been able to find a direct solution. I ended up writing an
EncryptBlock() method which used ECB mode with no padding and building
my own CTR Mode function from that. I does seem strange that CTR mode
is not included in .NET as a standard option.

rossum
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top