com.dyadicsec.pkcs11.CryptoExtension Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of unbound-java-provider Show documentation
Show all versions of unbound-java-provider Show documentation
This is a collection of JAVA libraries that implement Unbound cryptographic classes for JAVA provider, PKCS11 wrapper, cryptoki, and advapi
package com.dyadicsec.pkcs11;
/**
* Created by valery.osheter on 28-Jun-17.
*/
public final class CryptoExtension
{
public static native byte[] encryptFPE(int mode, char[] format, int maxLen, byte[] key, byte[] in);
public static native byte[] decryptFPE(int mode, char[] format, byte[] key, byte[] in);
public static native byte[] encryptSPE(byte[] key, byte[] in, int bits);
public static native byte[] decryptSPE(byte[] key, byte[] in, int bits);
public static native byte[] encryptOPE(byte[] key, byte[] in);
public static native byte[] decryptOPE(byte[] key, byte[] in);
}