I need to know what is the default mode that Bouncy Castle AES 256 uses.
我需要知道Bouncy Castle AES 256使用的默认模式是什么。
From what i know there are six confidentiality modes (ECB, CBC, OFB, CFB, CTR, and XTS-AES), one authentication mode (CMAC), and two combined modes for confidentiality and authentication (CCM and GCM).
据我所知,有六种机密性模式(ECB,CBC,OFB,CFB,CTR和XTS-AES),一种身份验证模式(CMAC),以及两种用于机密性和身份验证(CCM和GCM)的组合模式。
Please tell me which mode Bouncy Castle AES 256 uses by default
请告诉我Bouncy Castle AES 256默认使用哪种模式
1 个解决方案
#1
2
I checked the created Cipher object in a debugger. The Cipher.c member has an org.bouncycastle.jce.provider.symmetric.AES$ECB object. So it looks you are getting ECB mode.
我在调试器中检查了创建的Cipher对象。 Cipher.c成员有一个org.bouncycastle.jce.provider.symmetric.AES $ ECB对象。所以它看起来你正在获得ECB模式。
#1
2
I checked the created Cipher object in a debugger. The Cipher.c member has an org.bouncycastle.jce.provider.symmetric.AES$ECB object. So it looks you are getting ECB mode.
我在调试器中检查了创建的Cipher对象。 Cipher.c成员有一个org.bouncycastle.jce.provider.symmetric.AES $ ECB对象。所以它看起来你正在获得ECB模式。