CTR mode of operation in the Bouncy Castle lightweight API?

谁说胖子不能爱 提交于 2020-03-23 14:44:22

问题


Is there an implementation of CTR (counter) mode of operation in the Java / C# Bouncy Castle lightweight API?


回答1:


Yes, you can use org.bouncycastle.crypto.modes.SICBlockCipher.

The documentation of that class reads:

Implements the Segmented Integer Counter (SIC) mode on top of a simple block cipher. This mode is also known as CTR mode.

Note that the SICBlockCipher class does not seem to implement buffering of large key streams. It does also not provide functionality to encryption / decrypt from a specific offset within the key stream. At least not in versions of the class up to API level 1.51.



来源:https://stackoverflow.com/questions/25388347/ctr-mode-of-operation-in-the-bouncy-castle-lightweight-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!