TripleDES in CFB mode, C# and Crypto++ differs

后端 未结 2 859
悲&欢浪女
悲&欢浪女 2021-01-20 11:27

Here is my problem: I\'ve got a legacy code in C++ (using crypto++ v5.6.1) and I develop a new one in C# (.NET 3.5 using System.Security.Cryptography). I can\'t chan

2条回答
  •  清酒与你
    2021-01-20 11:54

    The FeedBackSize you have changed, relates to the CFB mode of operation (msdn documentation). Therefore you should also check that Feedback size in C++ and C# are the same.

    I believe that your bug could be maligned BlockSizes between the C++ code and the C# code. Have you tried setting BlockSize = 8 in the C# implementation?

提交回复
热议问题