Skip to content
This repository was archived by the owner on Mar 18, 2024. It is now read-only.
This repository was archived by the owner on Mar 18, 2024. It is now read-only.

FileUtils.sign() does not support ECDSA #89

@hinca

Description

@hinca

When using an elliptic curve keypair, the the key algorithm is EC, but the signature algorithm is SHA256withECDSA.

Therefore the assumption that one can get the Signature like FileUtils:100 does not hold:

Signature sign = Signature.getInstance("SHA256with" + key.getAlgorithm());

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