Skip to content

AES CBC 256 uses wrong key length #2390

Closed

Description

@spokorski

https://github.com/bcgit/bc-java/blame/d3cf02608295fc73f23ff4227a0c98e414b6e6af/prov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/AES.java#L162

    public static class CBC256
        extends BaseBlockCipher
    {
        public CBC256()
        {
            super(192, CBCBlockCipher.newInstance(AESEngine.newInstance()), 128);
            //    ^^^ should be 256?
        }
    }

Activity

  1. self-assigned this
    on Aug 5, 2026
  2. dghgit commented on Aug 7, 2026

    @dghgit
    Contributor

    Fix released in 1.85.2, now on Maven Central.

  3. added
    bug
    on Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions