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

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

Go to download

This is a collection of JAVA libraries that implement Unbound cryptographic classes for JAVA provider, PKCS11 wrapper, cryptoki, and advapi

There is a newer version: 42761
Show newest version
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