Skip to content

Truncated Ed25519 public keys leak provider array exceptions #22

Closed

Description

@bbottema

Malformed short Ed25519 key encodings can make Bouncy Castle's KeyFactory throw ArrayIndexOutOfBoundsException before returning InvalidKeySpecException. DomainKey exposes this provider detail instead of the library's normal DkimException decoding failure. Expected: narrowly wrap invalid encoding/provider bounds exceptions with the established message and original cause, preserving valid raw and legacy X.509 inputs. Reproduced by malformed-key length regression under Java 8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions