Skip to content

ccm panics on 32 bit architectures #258

@rkreis

Description

@rkreis

In some places liks this, to_be_bytes is called on usize values, which makes the code machine dependent:
https://github.com/RustCrypto/AEADs/blob/master/ccm/src/lib.rs#L119
If l_arr is only 4 bytes long, the index q a few lines below may overflow depending on the nonce length, for example with N=7 (l=8).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions