Bouncy Castle轻量级API中的CTR操作模式? [英] CTR mode of operation in the Bouncy Castle lightweight API?

查看:184
本文介绍了Bouncy Castle轻量级API中的CTR操作模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

推荐答案

是的,您可以使用 org.bouncycastle.crypto.modes.SICBlockCipher

该类的文档如下:


在简单的分组密码之上实现分段整数计数器(SIC)模式。此模式也称为CTR模式。

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

请注意, SICBlockCipher 类似乎没有实现大型键流的缓冲。它还不提供从密钥流中的特定偏移量进行加密/解密的功能。至少不是在API级别1.51之前的版本中。

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.

这篇关于Bouncy Castle轻量级API中的CTR操作模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆