Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. KeyAgreement.generateSecret() has thrown a ProviderException
    OpenJDK
    0
    2
    0
  2. PKCS11.C_DeriveKey() has thrown a PKCS11Exception
    OpenJDK
    0
    3
    0

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
sun.security.pkcs11.wrapper.PKCS11Exception: CKR_KEY_TYPE_INCONSISTENT
2 matching frames hidden
java.security.ProviderException: Could not derive key
    at sun.security.pkcs11.P11ECDHKeyAgreement.engineGenerateSecret(P11ECDHKeyAgreement.java:144)
    at javax.crypto.KeyAgreement.generateSecret(KeyAgreement.java:586)
    at hsm.main(hsm.java:52)

External results for this pattern (2)

  1. NeilMaddenvia GitHub10 months ago
    CKR_KEY_TYPE_INCONSISTENT
    Show stack trace