开发者

RijndaelManaged equivalent in openssl

There is some code written using C# which uses RijndaelManaged class to encrypt data and

Mode = CipherMode.CBC

I need implement the equivalent code in Mac using OpenSSl.

What is the equivalent 开发者_JAVA技巧to RijndaelManaged in OpenSSl?


RijndaelManaged is just a .NET implementation of the Rijndael algorithm. Rijndael is the algorithm that was chosen for AES, but AES doesn't use all of the key lengths that are possible with Rijndael (AES is a subset of Rijndael).

If the keys that your code uses with RijndaelManaged are also valid AES keys you can just use OpenSSL's AES functionality; otherwise I'm not sure ... but I'd advise you to stick to the AES subset of Rijndael because that's what everyone else does and it will help you to achieve interoperability.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜