是Bouncy Castle API线程安全吗?特别是,充气城堡API线程安全吗?
org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher
org.bouncycastle.crypto.paddings.PKCS7Padding
org.bouncycastle.crypto.engines.AESFastEngine
org.bouncycastle.crypto.modes.CBCBlockCipher
我打算在我的应用程序中编写一个单例Spring bean用于基本级加密支持。由于它是一个Web应用程序,因此多个线程一次访问此组件的机会较大。因此,踩踏安全是至关重要的。
如果您遇到过使用Bouncy Castle的情况,请告诉我。
是的,蒂尼尔森,你的推理是对的。我从充气城堡的邮件列表中找到了以下帖子,网址为http://www.bouncycastle.org/devmailarchive/msg04715.html。它不完全是线程安全的(至少AES引擎)。 – jatanp 2008-09-08 11:37:14