Skip to content

ECDH has to be exportable for one to be able to derive bits #11

Description

@mitar

ECDH's deriveBits calls _export:

return Key.deriveSharedSecret(Algorithm.formats.raw.import(alg.public._export("raw", nonce), alg));

But this is available only for keys which were configured as exportable. This is different from other implementations (like Chrome) where you can derive bits even when key is not exportable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions