aws-samples / aws-cloudhsm-jce-examples

Sample applications demonstrating how to use the CloudHSM JCE
MIT No Attribution
36 stars 56 forks source link

java.security.NoSuchAlgorithmException: no such algorithm: ECDH for provider CloudHSM #84

Closed weiqiangredtea closed 3 months ago

weiqiangredtea commented 4 months ago

java.security.NoSuchAlgorithmException: no such algorithm: ECDH for provider CloudHSM happened When I use CloudHSM(cloudhsm-jce-5.11.0.jar) with Algorithm:ECDH code:KeyAgreement keyAgree = KeyAgreement.getInstance("ECDH", CloudHsmProvider.PROVIDER_NAME);

image So how should I solve this problem?

weiqiangredtea commented 4 months ago

@rday @jpeddicord @TheEmpty @hyandell I urgently need your reply. thanks~

rday commented 4 months ago

Hi @weiqiangredtea ,

Please see https://docs.aws.amazon.com/cloudhsm/latest/userguide/ki-pkcs11-sdk.html#ki-pkcs11-9 for some additional information on ECDH. There are possible security concerns, depending on how you use the key. Are you able to work with a TAM who could involve a security specialist to dive deeper into your use case?

rday commented 3 months ago

Closing as we can't move forward without more information. Please re-open if needed!