简体   繁体   English

Bouncy Castle轻量级API中的CTR操作模式?

[英]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 . 是的,您可以使用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. 在简单的分组密码之上实现分段整数计数器(SIC)模式。 This mode is also known as CTR mode. 此模式也称为CTR模式。

Note that the SICBlockCipher class does not seem to implement buffering of large key streams. 请注意, SICBlockCipher类似乎并未实现大型键流的缓冲。 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. 至少不是在API级别1.51以上的类版本中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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