mujeeb
mujeeb

Reputation: 819

Bouncy Castle Default Modes AES 256

I need to know what is the default mode that Bouncy Castle AES 256 uses.

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).

Please tell me which mode Bouncy Castle AES 256 uses by default

Upvotes: 0

Views: 2785

Answers (1)

Ulf Jaehrig
Ulf Jaehrig

Reputation: 749

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.

Upvotes: 2

Related Questions