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

com.dyadicsec.cryptoki.CK 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.dyadicsec.cryptoki;

/**
 * Created by valery.osheter on 27-Jun-17.
 */
public interface CK {
    public static final int CK_UNAVAILABLE_INFORMATION = -1;
    public static final int CKK_RSA = 0x00000000;
    public static final int CKK_EC = 0x00000003;
    public static final int CKK_GENERIC_SECRET = 0x00000010;
    public static final int CKK_RC2 = 0x00000011;
    public static final int CKK_AES = 0x0000001F;
    public static final int CKK_DES3 = 0x00000015;
    public static final int DYCKK_AES_SIV = 0x80007104;
    public static final int DYCKK_AES_XTS = 0x80007105;
    //public static final int DYCKK_RLWE                            = 0x80007106;
    public static final int DYCKK_LIMA = 0x80007107;
    public static final int DYCKK_EDDSA = 0x80007108;
    public static final int DYCKK_ADV_PASSWORD = 0x80007101;
    public static final int DYCKK_ADV_PRF = 0x80007103;

    public static final int CKD_NULL = 0x00000001;
    public static final int CKD_SHA1_KDF = 0x00000002;
    public static final int CKD_SHA256_KDF = 0x00000006;
    public static final int CKD_SHA384_KDF = 0x00000007;
    public static final int CKD_SHA512_KDF = 0x00000008;

    public static final int CKF_HW = 0x00000001;  /* performed by HW */
    public static final int CKF_RW_SESSION = 0x00000002;
    public static final int CKF_SERIAL_SESSION = 0x00000004;
    public static final int CKF_LOGIN_REQUIRED = 0x00000004;

    public static final int CKR_OK = 0x00000000;
    public static final int CKR_CANCEL = 0x00000001;
    public static final int CKR_HOST_MEMORY = 0x00000002;
    public static final int CKR_SLOT_ID_INVALID = 0x00000003;
    public static final int CKR_GENERAL_ERROR = 0x00000005;
    public static final int CKR_FUNCTION_FAILED = 0x00000006;
    public static final int CKR_ARGUMENTS_BAD = 0x00000007;
    public static final int CKR_NO_EVENT = 0x00000008;
    public static final int CKR_NEED_TO_CREATE_THREADS = 0x00000009;
    public static final int CKR_CANT_LOCK = 0x0000000A;
    public static final int CKR_ATTRIBUTE_READ_ONLY = 0x00000010;
    public static final int CKR_ATTRIBUTE_SENSITIVE = 0x00000011;
    public static final int CKR_ATTRIBUTE_TYPE_INVALID = 0x00000012;
    public static final int CKR_ATTRIBUTE_VALUE_INVALID = 0x00000013;
    public static final int CKR_DATA_INVALID = 0x00000020;
    public static final int CKR_DATA_LEN_RANGE = 0x00000021;
    public static final int CKR_DEVICE_ERROR = 0x00000030;
    public static final int CKR_DEVICE_MEMORY = 0x00000031;
    public static final int CKR_DEVICE_REMOVED = 0x00000032;
    public static final int CKR_ENCRYPTED_DATA_INVALID = 0x00000040;
    public static final int CKR_ENCRYPTED_DATA_LEN_RANGE = 0x00000041;
    public static final int CKR_FUNCTION_CANCELED = 0x00000050;
    public static final int CKR_FUNCTION_NOT_PARALLEL = 0x00000051;
    public static final int CKR_FUNCTION_NOT_SUPPORTED = 0x00000054;
    public static final int CKR_KEY_HANDLE_INVALID = 0x00000060;
    public static final int CKR_KEY_SIZE_RANGE = 0x00000062;
    public static final int CKR_KEY_TYPE_INCONSISTENT = 0x00000063;
    public static final int CKR_KEY_NOT_NEEDED = 0x00000064;
    public static final int CKR_KEY_CHANGED = 0x00000065;
    public static final int CKR_KEY_NEEDED = 0x00000066;
    public static final int CKR_KEY_INDIGESTIBLE = 0x00000067;
    public static final int CKR_KEY_FUNCTION_NOT_PERMITTED = 0x00000068;
    public static final int CKR_KEY_NOT_WRAPPABLE = 0x00000069;
    public static final int CKR_KEY_UNEXTRACTABLE = 0x0000006A;
    public static final int CKR_MECHANISM_INVALID = 0x00000070;
    public static final int CKR_MECHANISM_PARAM_INVALID = 0x00000071;
    public static final int CKR_OBJECT_HANDLE_INVALID = 0x00000082;
    public static final int CKR_OPERATION_ACTIVE = 0x00000090;
    public static final int CKR_OPERATION_NOT_INITIALIZED = 0x00000091;
    public static final int CKR_PIN_INCORRECT = 0x000000A0;
    public static final int CKR_PIN_INVALID = 0x000000A1;
    public static final int CKR_PIN_LEN_RANGE = 0x000000A2;
    public static final int CKR_PIN_EXPIRED = 0x000000A3;
    public static final int CKR_PIN_LOCKED = 0x000000A4;
    public static final int CKR_SESSION_CLOSED = 0x000000B0;
    public static final int CKR_SESSION_COUNT = 0x000000B1;
    public static final int CKR_SESSION_HANDLE_INVALID = 0x000000B3;
    public static final int CKR_SESSION_PARALLEL_NOT_SUPPORTED = 0x000000B4;
    public static final int CKR_SESSION_READ_ONLY = 0x000000B5;
    public static final int CKR_SESSION_EXISTS = 0x000000B6;
    public static final int CKR_SESSION_READ_ONLY_EXISTS = 0x000000B7;
    public static final int CKR_SESSION_READ_WRITE_SO_EXISTS = 0x000000B8;
    public static final int CKR_SIGNATURE_INVALID = 0x000000C0;
    public static final int CKR_SIGNATURE_LEN_RANGE = 0x000000C1;
    public static final int CKR_TEMPLATE_INCOMPLETE = 0x000000D0;
    public static final int CKR_TEMPLATE_INCONSISTENT = 0x000000D1;
    public static final int CKR_TOKEN_NOT_PRESENT = 0x000000E0;
    public static final int CKR_TOKEN_NOT_RECOGNIZED = 0x000000E1;
    public static final int CKR_TOKEN_WRITE_PROTECTED = 0x000000E2;
    public static final int CKR_UNWRAPPING_KEY_HANDLE_INVALID = 0x000000F0;
    public static final int CKR_UNWRAPPING_KEY_SIZE_RANGE = 0x000000F1;
    public static final int CKR_UNWRAPPING_KEY_TYPE_INCONSISTENT = 0x000000F2;
    public static final int CKR_USER_ALREADY_LOGGED_IN = 0x00000100;
    public static final int CKR_USER_NOT_LOGGED_IN = 0x00000101;
    public static final int CKR_USER_PIN_NOT_INITIALIZED = 0x00000102;
    public static final int CKR_USER_TYPE_INVALID = 0x00000103;
    public static final int CKR_USER_ANOTHER_ALREADY_LOGGED_IN = 0x00000104;
    public static final int CKR_USER_TOO_MANY_TYPES = 0x00000105;
    public static final int CKR_WRAPPED_KEY_INVALID = 0x00000110;
    public static final int CKR_WRAPPED_KEY_LEN_RANGE = 0x00000112;
    public static final int CKR_WRAPPING_KEY_HANDLE_INVALID = 0x00000113;
    public static final int CKR_WRAPPING_KEY_SIZE_RANGE = 0x00000114;
    public static final int CKR_WRAPPING_KEY_TYPE_INCONSISTENT = 0x00000115;
    public static final int CKR_RANDOM_SEED_NOT_SUPPORTED = 0x00000120;
    public static final int CKR_RANDOM_NO_RNG = 0x00000121;
    public static final int CKR_DOMAIN_PARAMS_INVALID = 0x00000130;
    public static final int CKR_BUFFER_TOO_SMALL = 0x00000150;
    public static final int CKR_SAVED_STATE_INVALID = 0x00000160;
    public static final int CKR_INFORMATION_SENSITIVE = 0x00000170;
    public static final int CKR_STATE_UNSAVEABLE = 0x00000180;
    public static final int CKR_CRYPTOKI_NOT_INITIALIZED = 0x00000190;
    public static final int CKR_CRYPTOKI_ALREADY_INITIALIZED = 0x00000191;
    public static final int CKR_MUTEX_BAD = 0x000001A0;
    public static final int CKR_MUTEX_NOT_LOCKED = 0x000001A1;
    public static final int CKR_VENDOR_DEFINED = 0x80000000;

    public static final int CKO_DATA = 0x00000000;
    public static final int CKO_CERTIFICATE = 0x00000001;
    public static final int CKO_PUBLIC_KEY = 0x00000002;
    public static final int CKO_PRIVATE_KEY = 0x00000003;
    public static final int CKO_SECRET_KEY = 0x00000004;
    public static final int CKO_HW_FEATURE = 0x00000005;
    public static final int CKO_DOMAIN_PARAMETERS = 0x00000006;

    public static final int CKA_CLASS = 0x00000000;
    public static final int CKA_TOKEN = 0x00000001;
    public static final int CKA_PRIVATE = 0x00000002;
    public static final int CKA_LABEL = 0x00000003;
    public static final int CKA_APPLICATION = 0x00000010;
    public static final int CKA_VALUE = 0x00000011;
    public static final int CKA_OBJECT_ID = 0x00000012;
    public static final int CKA_CERTIFICATE_TYPE = 0x00000080;
    public static final int CKA_ISSUER = 0x00000081;
    public static final int CKA_SERIAL_NUMBER = 0x00000082;
    public static final int CKA_TRUSTED = 0x00000086;
    public static final int CKA_CERTIFICATE_CATEGORY = 0x00000087;
    public static final int CKA_KEY_TYPE = 0x00000100;
    public static final int CKA_SUBJECT = 0x00000101;
    public static final int CKA_ID = 0x00000102;
    public static final int CKA_SENSITIVE = 0x00000103;
    public static final int CKA_ENCRYPT = 0x00000104;
    public static final int CKA_DECRYPT = 0x00000105;
    public static final int CKA_WRAP = 0x00000106;
    public static final int CKA_UNWRAP = 0x00000107;
    public static final int CKA_SIGN = 0x00000108;
    public static final int CKA_SIGN_RECOVER = 0x00000109;
    public static final int CKA_VERIFY = 0x0000010A;
    public static final int CKA_VERIFY_RECOVER = 0x0000010B;
    public static final int CKA_DERIVE = 0x0000010C;
    public static final int CKA_START_DATE = 0x00000110;
    public static final int CKA_END_DATE = 0x00000111;
    public static final int CKA_MODULUS = 0x00000120;
    public static final int CKA_MODULUS_BITS = 0x00000121;
    public static final int CKA_PUBLIC_EXPONENT = 0x00000122;
    public static final int CKA_PRIVATE_EXPONENT = 0x00000123;
    public static final int CKA_PRIME_1 = 0x00000124;
    public static final int CKA_PRIME_2 = 0x00000125;
    public static final int CKA_EXPONENT_1 = 0x00000126;
    public static final int CKA_EXPONENT_2 = 0x00000127;
    public static final int CKA_COEFFICIENT = 0x00000128;
    public static final int CKA_VALUE_BITS = 0x00000160;
    public static final int CKA_VALUE_LEN = 0x00000161;
    public static final int CKA_EXTRACTABLE = 0x00000162;
    public static final int CKA_LOCAL = 0x00000163;
    public static final int CKA_NEVER_EXTRACTABLE = 0x00000164;
    public static final int CKA_ALWAYS_SENSITIVE = 0x00000165;
    public static final int CKA_KEY_GEN_MECHANISM = 0x00000166;
    public static final int CKA_MODIFIABLE = 0x00000170;
    public static final int CKA_EC_PARAMS = 0x00000180;
    public static final int CKA_EC_POINT = 0x00000181;
    public static final int CKA_SECONDARY_AUTH = 0x00000200;
    public static final int CKA_WRAP_WITH_TRUSTED = 0x00000210;
    public static final int CKA_ALWAYS_AUTHENTICATE = 0x00000202;

    public static final int DYCKA_UID = 0x80007201;
    //public static final int DYCKA_RLWE_PUB_KEY                    = 0x80007204;
    public static final int KMIP_REPLACED_UID = 0x80007205;
    public static final int DYCKA_LIMA_PUB_KEY = 0x80007207;
    public static final int DYCKA_EDDSA_PUB_KEY = 0x80007208;
    public static final int KMIP_PRIVATE_KEY_UID = 0x8000720d;
    public static final int DYCKA_FIPS = 0x8000720a;
    public static final int DYCKA_ENABLED = 0x80007240;

    public static final int DYCKA_ECDSA_BIP_LEVEL = 0x80007210;
    public static final int DYCKA_ECDSA_BIP_CHILD_NUMBER = 0x80007211;
    public static final int DYCKA_ECDSA_BIP_PARENT_FINGERPRINT = 0x80007212;
    public static final int DYCKA_ECDSA_BIP_CPAR = 0x80007213;
    public static final int DYCKA_ECDSA_BIP_PARENT_UID = 0x80007214;
    public static final int DYCKA_ECDSA_BIP_HARDENED = 0x80007215;

    public static final int DYCKA_KEY_ROTATION_INTERVAL = 0x8000ffe2;
    public static final int DYCKA_NEXT_KEY_ROTATION_TIME = 0x8000ffe3;


    public static final int CKM_RSA_PKCS_KEY_PAIR_GEN = 0x00000000;
    public static final int CKM_RSA_PKCS = 0x00000001;
    public static final int CKM_RSA_X_509 = 0x00000003;
    public static final int CKM_SHA1_RSA_PKCS = 0x00000006;
    public static final int CKM_RSA_PKCS_OAEP = 0x00000009;
    public static final int CKM_RSA_PKCS_PSS = 0x0000000D;
    public static final int CKM_SHA1_RSA_PKCS_PSS = 0x0000000E;
    public static final int CKM_SHA256_RSA_PKCS = 0x00000040;
    public static final int CKM_SHA384_RSA_PKCS = 0x00000041;
    public static final int CKM_SHA512_RSA_PKCS = 0x00000042;
    public static final int CKM_SHA256_RSA_PKCS_PSS = 0x00000043;
    public static final int CKM_SHA384_RSA_PKCS_PSS = 0x00000044;
    public static final int CKM_SHA512_RSA_PKCS_PSS = 0x00000045;

    public static final int CKM_SHA_1 = 0x00000220;
    public static final int CKM_SHA256 = 0x00000250;
    public static final int CKM_SHA384 = 0x00000260;
    public static final int CKM_SHA512 = 0x00000270;
    public static final int CKM_EC_KEY_PAIR_GEN = 0x00001040;
    public static final int CKM_ECDSA = 0x00001041;
    public static final int CKM_ECDSA_SHA1 = 0x00001042;
    public static final int CKM_ECDSA_SHA256 = 0x00001044;
    public static final int CKM_ECDSA_SHA384 = 0x00001045;
    public static final int CKM_ECDSA_SHA512 = 0x00001046;
    public static final int CKM_ECDH1_DERIVE = 0x00001050;
    public static final int CKM_AES_CCM = 0x00001088;
    public static final int CKM_AES_KEY_GEN = 0x00001080;
    public static final int CKM_DES3_ECB = 0x00000132;
    public static final int CKM_AES_ECB = 0x00001081;
    public static final int CKM_AES_CBC = 0x00001082;
    public static final int CKM_DES3_CBC = 0x00000133;
    public static final int CKM_AES_OFB = 0x00002104;
    public static final int CKM_AES_CTR = 0x00001086;
    public static final int CKM_AES_GCM = 0x00001087;
    public static final int CKM_AES_GMAC = 0x0000108E;
    public static final int CKM_AES_CBC_PAD = 0x00001085;
    public static final int CKM_AES_CFB128 = 0x00002107;
    public static final int CKM_AES_CMAC = 0x0000108A;
    public static final int CKM_AES_KEY_WRAP = 0x00002109;
    public static final int CKM_AES_KEY_WRAP_PAD = 0x0000210A;
    public static final int DYCKM_AES_XTS_KEY_GEN = 0x80007e42;
    public static final int DYCKM_AES_XTS = 0x80007e41;
    public static final int DYCKM_AES_SIV_KEY_GEN = 0x80007e02;
    public static final int DYCKM_AES_SIV = 0x80007e01;
    public static final int CKM_DES3_KEY_GEN = 0x00000131;
    public static final int CKM_DES3_CBC_PAD = 0x00000136;
    public static final int CKM_DES_CFB64 = 0x00000152;
    public static final int CKM_DES_OFB64 = 0x00000150;
    public static final int CKM_DES3_CMAC = 0x00000138;
    public static final int CKM_GENERIC_SECRET_KEY_GEN = 0x00000350;
    public static final int CKM_SHA_1_HMAC = 0x00000221;
    public static final int CKM_SHA_1_HMAC_GENERAL = 0x00000222;
    public static final int CKM_SHA256_HMAC = 0x00000251;
    public static final int CKM_SHA256_HMAC_GENERAL = 0x00000252;
    public static final int CKM_SHA384_HMAC = 0x00000261;
    public static final int CKM_SHA384_HMAC_GENERAL = 0x00000262;
    public static final int CKM_SHA512_HMAC = 0x00000271;
    public static final int CKM_SHA512_HMAC_GENERAL = 0x00000272;
    public static final int CKM_CONCATENATE_BASE_AND_DATA = 0x00000362;
    public static final int CKM_CONCATENATE_DATA_AND_BASE = 0x00000363;
    public static final int CKM_SHA1_KEY_DERIVATION = 0x00000392;
    public static final int CKM_SHA256_KEY_DERIVATION = 0x00000393;
    public static final int CKM_SHA384_KEY_DERIVATION = 0x00000394;
    public static final int CKM_SHA512_KEY_DERIVATION = 0x00000395;

    public static final int DYCKM_LIMA_KEY_GEN = 0x80007e52;
    public static final int DYCKM_LIMA = 0x80007e51;
    public static final int DYCKM_PASSWORD = 0x80007e21;
    public static final int DYCKM_PASSWORD_KEY_GEN = 0x80007e22;
    public static final int DYCKM_PRF_KEY_GEN = 0x80007e12;
    public static final int DYCKM_PRF = 0x80007e11;
    public static final int DYCKM_ECIES = 0x80007e13;
    public static final int DYCKM_FPE = 0x80007e14; // format preserving
    public static final int DYCKM_OPE = 0x80007e15; // order preserving
    public static final int DYCKM_SPE = 0x80007e16; // size preserving
    public static final int DYCKM_NIST_KDF_CMAC_CTR = 0x80007e17;
    public static final int DYCKM_EDDSA = 0x80007e81;
    public static final int DYCKM_EDDSA_KEY_GEN = 0x80007e82;

    public static final int DYCKM_DERIVE_ECDSA_BIP = 0x80007e60;
    public static final int DYCKM_SCHNORR = 0x80007e90;
    public static final int DYCKM_DES3_X919_MAC = 0x80007ea0;

    public static final int CKS_RO_PUBLIC_SESSION = 0x00000000;
    public static final int CKS_RO_USER_FUNCTIONS = 0x00000001;
    public static final int CKS_RW_USER_FUNCTIONS = 0x00000003;

    public static final int CKG_MGF1_SHA1 = 0x00000001;
    public static final int CKG_MGF1_SHA256 = 0x00000002;
    public static final int CKG_MGF1_SHA384 = 0x00000003;
    public static final int CKG_MGF1_SHA512 = 0x00000004;

    public static final int CKU_SO = 0;
    public static final int CKU_USER = 1;
    public static final int DYCKU_USER_CHECK = 0x80007001;

    public static final int CKZ_DATA_SPECIFIED = 0x00000001;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy