Skip to content

AES CBC 256 uses wrong key length #2390

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions