All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.unbound.client.DeriveMode Maven / Gradle / Ivy

package com.unbound.client;

import com.dyadicsec.cryptoki.CK;
import com.unbound.kmip.KMIP;

public final class DeriveMode
{
  private final Integer kmipAlg;
  private final int pkcs11Mech;

  public Integer getKmipAlg() { return kmipAlg; }
  public int getPkcs11Mech() { return pkcs11Mech; }

  private DeriveMode(Integer kmipAlg, int pkcs11Mech)
  {
    this.kmipAlg = kmipAlg;
    this.pkcs11Mech = pkcs11Mech;
  }

  public static DeriveMode ECDH = new DeriveMode(KMIP.CryptographicAlgorithm.ECDH, CK.CKM_ECDH1_DERIVE);
  public static DeriveMode ECPRF = new DeriveMode(KMIP.CryptographicAlgorithm.DyPRF, CK.DYCKM_PRF);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy