简体   繁体   中英

CTR mode of operation in the Bouncy Castle lightweight API?

Java / C#Bouncy Castle轻量级API中是否有CTR(计数器)操作模式的实现?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM