Skip to content

BlockSizes up to only 256 bytes makes it impossible to implement BlockSizeUser for wide-block ciphers #2304

@NumberFour8

Description

@NumberFour8

The BlockSizes trait is implemented only up to 256 bytes.

impl<T: Unsigned> BlockSizes for T where Self: IsLess<U256, Output = True> + NonZero {}

It therefore makes it impossible for a wide-block cipher (with a fixed block length) to implement BlockSizeUser.

Would it perhaps make sense to lift this up (at least 2k ?), or even make it unlimited.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions