Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

AES with a block size of 32 bytes (256 bits) #239

@CristhianMotoche

Description

@CristhianMotoche

Hello,

I need to write some code written in C# to Haskell. The C# code uses a Rijndael and sets the block size to 32 bytes (256 bits):

var symmetricKey = new RijndaelManaged()
symmetricKey.BlockSize = 256;
symmetricKey.Mode = CipherMode.CBC;
symmetricKey.Padding = PaddingMode.PKCS7;

I can't use AES because its BlockCipher instances set the blockSize to 16 bytes.

Can you add an instance of AES that uses a blockSize of 32?
or should I create my own type for this and then a BlockCipher instance of it?
or should I write the C code that handles 32 bytes of block size?

Thanks in advance for any help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions