Skip to content

Add AES key length validation #3

Closed
Closed
@alan-null

Description

@alan-null

Add a validation to ensure the input key length is either 16, 24, or 32 bytes (AES-128, AES-192, AES-256).

These key lengths come directly from the AES specification (FIPS PUB 197), set by the National Institute of Standards and Technology (NIST). No other key lengths are valid — the AES algorithm won’t work if the key length is anything other than these three sizes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions