Make ECDHEncrypter take ephemeral key as argument

Issue #275 invalid
Antonio Ivanovski created an issue

I am having difficulties implementing Diffie Hellman with static key (ECDH_ES). The issue is that on each ECDHEncrypter.encrypt new ephemeral key is generated and I don't have access to it. Reference: https://bitbucket.org/connect2id/nimbus-jose-jwt/src/5f53c563450a4ffeee5547c4fc47e19abc4dcfb8/src/main/java/com/nimbusds/jose/crypto/ECDHEncrypter.java?at=master&fileviewer=file-view-default#ECDHEncrypter.java-162:165

I want to have access to the private key so i can create ECDHDecrypter so i can achieve secure two way communication.

It seems to me that I am using the library wrong, please correct me if this is the case. Otherwise, I would gladly submit a PR.

Comments (1)

  1. Log in to comment