ECDHEncrypter with external CEK

Issue #292 resolved
Fernando González Callejas created an issue

In the RSAEncrypter we have the option to set an external CEK with the constructor:

RSAEncrypter(final RSAPublicKey publicKey, final SecretKey contentEncryptionKey)

Can you please add the option to create an ECDHEncrypter to take an external CEK, (generated, e.g. in a HSM) like in the RSAEncrypter.

Thank you.

Comments (6)

  1. Vladimir Dzhuvinov

    Hi Fernando,

    Would you be interested in submitting a patch for that? You can use the existing RSAEncrypter code and tests as an example how to do that.

  2. Fernando González Callejas reporter

    Hi Vladimir,

    I'm working in some projects right now, let me see if I can find some time for this.

    Thanks!

  3. Fernando González Callejas reporter

    Hi Vladimir,

    Last week I did the pull request, can you please check it out.

    Thank you.

  4. Vladimir Dzhuvinov

    Thanks, this is much appreciated! I hope to be able to do that within the next week.

    Thanks again,

  5. Log in to comment