Skip to content

security: add KDF step when deriving symmetric key in mkem #44

Description

@dobby-coder

Tracked in security advisory: https://github.com/encryption4all/ibe/security/advisories/GHSA-236p-m8qr-cmjg

The mkem layer derives its AES-128-GCM encryption key by raw truncation of the KEM shared secret rather than applying a proper KDF. The fix involves applying HKDF-SHA256 (or switching to AES-256-GCM using the full output) with domain separation. See the advisory for full details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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