Skip to content
This repository was archived by the owner on Jan 28, 2026. It is now read-only.

Unclear whether key valiation should be performed on import #33

@devgianlu

Description

@devgianlu

Citing w3c/webcrypto#399:

Looking at the import key operation for Ed25519 (also applies to X25519, Ed448 and X448) there does not seem to be any explicit mention of the necessity of validating the imported key. However, multiple WPT tests are present to test for invalid key lengths.

This is especially relevant for the raw type which could simply be a byte-sequence copy (implementation wise), but in reality needs to validate (at least?) the length of the key. Similary, the jwk type should additionally check for the validity of the keypair according to the WPT tests.

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