kz.gamma.tumarcsp
Class TumarCspFunctions

java.lang.Object
  extended by kz.gamma.tumarcsp.LibraryWrapper
      extended by kz.gamma.tumarcsp.TumarCspFunctions

public class TumarCspFunctions
extends LibraryWrapper

Класс с обертками для функций криптопровайдера TumarCSP Date: 29.10.2009 Time: 16:02:28


Field Summary
 
Fields inherited from class kz.gamma.tumarcsp.LibraryWrapper
ALG_CLASS_DATA_ENCRYPT, ALG_CLASS_HASH, ALG_RSA_1536_EXCH, ALG_SID_GOST, ALG_SID_RSA_1024, ALG_SID_SHA_160, ALG_SID_SHA_256, ALG_SID_T3DES, ALG_SID_TG28147, ALG_SID_TGR3411, ALG_TYPE_ANY, ALG_TYPE_BLOCK, ALG_TYPE_STREAM, AT_KEYEXCHANGE, AT_SIGNATURE, CALG_CMP_KEY, CALG_GOST, CALG_MAC, CALG_SHA_160, CALG_SHA_160_HMAC, CALG_SHA_256, CALG_T3DES, CALG_TG28147, CALG_TG28147_IMIT, CALG_TGR3411, CCPD, CMP_GENERAL_ADD_SECRET, CMP_GENERAL_ADD_USER_DETAILS, CMP_GENERAL_CRL, CMP_GENERAL_CRT_EXCH, CMP_GENERAL_DEL_KEY, CMP_GENERAL_DEL_SECRET, CMP_GENERAL_DEP_KEY, CMP_GENERAL_GET_KEY, CMP_GENERAL_GET_OPER_CA, CMP_GENERAL_GET_SECRET, CMP_GENERAL_GET_USER_DETAILS, CMP_GENERAL_IMPL_CONF, CMP_GENERAL_IT, CMP_GENERAL_MOD_SECRET, CMP_GENERAL_MOD_USER_DETAILS, CMP_GENERAL_PASS, CMP_GENERAL_SRV_WAIT, CMP_GENERAL_TRANS_LIST, CPD, CRT_KEYUSAGE_CERTSIG, CRT_KEYUSAGE_CRLSIGN, CRT_KEYUSAGE_DATAENC, CRT_KEYUSAGE_DECONLY, CRT_KEYUSAGE_DIGSIGN, CRT_KEYUSAGE_ENCONLY, CRT_KEYUSAGE_KEYAGRM, CRT_KEYUSAGE_KEYENCH, CRT_KEYUSAGE_NONREPU, CRT_PURPOSE_CA, CRT_PURPOSE_DVCS, CRT_PURPOSE_OCSP, CRT_PURPOSE_RA, CRT_PURPOSE_TSA, CRYPT_CMP_NO_IMP_CONF, CRYPT_CPRO_EXPORT, CRYPT_DEFAULT_MODE, CRYPT_DELETEKEYSET, CRYPT_ECC_EXPORT, CRYPT_ECDSA, CRYPT_EXPORTABLE, CRYPT_FIRST, CRYPT_KAZ_EXPORT, CRYPT_MODE_CBC, CRYPT_NEWKEYSET, CRYPT_NEWKEYSET_OLD, CRYPT_NEWKEYSETEX, CRYPT_NO_MATH_CACHE, CRYPT_OBJECT_CMP, CRYPT_OBJECT_CRL, CRYPT_OBJECT_CRT, CRYPT_OBJECT_OCSP, CRYPT_OBJECT_P10, CRYPT_OBJECT_REV, CRYPT_OBJECT_TSP, CRYPT_OLD_P10_FORMAT, CRYPT_OLD_TUM_KEYSET, CRYPT_P12_STD_EXPORT, CRYPT_P12_STD_EXPORT_S, CRYPT_SIGN_ASN1, CRYPT_SIGN_PKCS7, CRYPT_SILENT, CRYPT_USE_OCSP_LOCATOR, CRYPT_VERIFYCONTEXT, CRYPT_X509_FORMAT, CRYPTO_PRO_GOST, DEFAULT_ALG_EXCH, DEFAULT_ALG_SIGN, EC_CRYPTO_PRO_HASH_ALG_ID, EC_HASH_ALG_ID, ECGOST34310, HP_HASHVAL, HP_PKCS7_BODY, HP_PKCS7_CERTIFICATE, HP_PKCS7_CRT_COUNT, HP_PKCS7_CUR_SIGN, HP_PKCS7_DATA, HP_PKCS7_DATA_SIZE, HP_PKCS7_ENUM_CERT, HP_PKCS7_HASH_AID, HP_PKCS7_SI_DN, HP_PKCS7_SI_HASH_AID, HP_PKCS7_SI_SIGN_AID, HP_PKCS7_SI_SN, HP_PKCS7_SIGN_COUNT, HP_PKCS9_CUR_OID, HP_PKCS9A_DATA, HP_PKCS9A_SIZE, HP_PKCS9U_DATA, HP_PKCS9U_SIZE, HP_TIME_STAMP_CRT, HP_TIME_STAMP_OID, HP_TIME_STAMP_REQ, HP_TSTAMP_BODY, HP_TSTAMP_DN, HP_TSTAMP_HASH, HP_TSTAMP_NONCE, HP_TSTAMP_POLICIE, HP_TSTAMP_SN, HP_TSTAMP_STSTUS, HP_TSTAMP_TIME, ISSUING, KEY_ALG_CODE, KEY_ALG_FIRST_LEVEL, KEY_ALG_FOURTH_LEVEL, KEY_ALG_ID, KEY_ALG_MAX_LEVEL, KEY_ALG_NAME, KEY_ALG_OID, KEY_ALG_PUB_BITS, KEY_ALG_SEC_BITS, KEY_ALG_SECOND_LEVEL, KEY_ALG_THIRD_LEVEL, KEY_ALG_TYPE, KEY_ALG_TYPE_DH, KEY_ALG_TYPE_DH_EC_RSA, KEY_ALG_TYPE_EC, KEY_ALG_TYPE_RSA, KEY_ALG_ZERO_LEVEL, KEY_STATE_ACTIVE, KEY_STATE_NEW, KP_ALGID, KP_CERTIFICATE, KP_CERTIFICATE_CA, KP_CERTIFICATE_CHAIN, KP_CMP_ADD_KEY, KP_CMP_CERTIFICATES, KP_CMP_CERTIFICATES_CA, KP_CMP_CHECK_AFTER, KP_CMP_EXP_KEY, KP_CMP_EXT, KP_CMP_FAIL, KP_CMP_GEN_CNT, KP_CMP_GEN_OID, KP_CMP_GEN_VAL, KP_CMP_HASH_ALG, KP_CMP_MAC_ALG, KP_CMP_OTP, KP_CMP_OVALID, KP_CMP_RCP_DN, KP_CMP_RCP_NONCE, KP_CMP_RCP_SUBJ, KP_CMP_RR_REASON, KP_CMP_SECRET, KP_CMP_SERVER_WAIT, KP_CMP_SND_DN, KP_CMP_SND_KID, KP_CMP_SND_NONCE, KP_CMP_STATUS, KP_CMP_TRANS_ID, KP_CMP_TYPE, KP_CRT_COUNT, KP_CRT_ENUM_POLICIES, KP_CRT_ISSU_DN, KP_CRT_PURPOSES, KP_CRT_SUBJ_DN, KP_CRT_USAGE, KP_CRT_VFROM, KP_CRT_VTO, KP_CUR_CRT_SECTION, KP_ENUM_CERT, KP_KEY_SN, KP_MODE, KP_OCSP_REP_CRT_SN, KP_OCSP_REP_CRT_STATUS, KP_OCSP_REP_NEXT_UPD, KP_OCSP_REP_REV_REASON, KP_OCSP_REP_REV_TIME, KP_OCSP_REP_STATUS, KP_OCSP_REP_THIS_UPD, KP_OCSP_REP_TIME, KP_PADDING, KP_PKCS7_DATA, KP_PKCS7_DATA_SIZE, KP_USER_KEY, KZ_OID_GOST, LIBRARY_NAME, libraryBit, LICENSE_CREATED, LICENSE_EXPIRES, LICENSE_LEVEL, LICENSE_NAME, LICENSE_USER, OID_PKCS9_LOCAL_KEY_ID, OID_PKCS9_SIGNINGTIME, OID_PKCS9_TIMESTAMPATTR, OID_TRANSACTION_ID, PK_CERTIFICATE, PK_CREATETIME, PK_KEY_ALGID, PK_KEY_EXP_STATE, PK_KEYSTATE, PK_PUBLICKEY, PK_SERIALNUM, PK_SZOID, PKCS5_PADDING, PKCS7_BASE64_ENCODING, PKCS7_CRT_INCLUDE, PKCS7_PEM_ENCODING, PKI_CMP_CANN, PKI_CMP_CCP, PKI_CMP_CCR, PKI_CMP_CERT_CONF, PKI_CMP_CKUANN, PKI_CMP_CP, PKI_CMP_CR, PKI_CMP_CRLANN, PKI_CMP_ERROR, PKI_CMP_GENM, PKI_CMP_GENP, PKI_CMP_IP, PKI_CMP_IR, PKI_CMP_KRP, PKI_CMP_KRR, PKI_CMP_KUP, PKI_CMP_KUR, PKI_CMP_NESTED, PKI_CMP_P10CR, PKI_CMP_PKI_CONF, PKI_CMP_POPDECC, PKI_CMP_POPDECR, PKI_CMP_PP, PKI_CMP_PR, PKI_CMP_RANN, PKI_CMP_RP, PKI_CMP_RR, PKI_TRANS_STATE_ACCEPT, PKI_TRANS_STATE_ERROR, PKI_TRANS_STATE_WAIT_ADMIN, PKI_TRANS_STATE_WAIT_TIME, PKI_TRANS_STATE_WAIT_USER, PKI_TRANS_TYPE_CCR, PKI_TRANS_TYPE_CR, PKI_TRANS_TYPE_GENM, PKI_TRANS_TYPE_IR, PKI_TRANS_TYPE_KRR, PKI_TRANS_TYPE_KUR, PKI_TRANS_TYPE_P10CR, PKIFAILURE_INFO_ADD_INFO_NOT_AVAILABLE, PKIFAILURE_INFO_BAD_ALG, PKIFAILURE_INFO_BAD_CERT_ID, PKIFAILURE_INFO_BAD_CERT_TEMPLATE, PKIFAILURE_INFO_BAD_DATA_FORMAT, PKIFAILURE_INFO_BAD_MESSAGE_CHECK, PKIFAILURE_INFO_BAD_POP, PKIFAILURE_INFO_BAD_RECIPIENT_NONCE, PKIFAILURE_INFO_BAD_REQUEST, PKIFAILURE_INFO_BAD_SENDER_NONCE, PKIFAILURE_INFO_BAD_TIME, PKIFAILURE_INFO_CERT_CONFIRMED, PKIFAILURE_INFO_CERT_REVOKED, PKIFAILURE_INFO_DUPLICATE_CERT_REQ, PKIFAILURE_INFO_INCORRECT_DATA, PKIFAILURE_INFO_MISSING_TIME_STAMP, PKIFAILURE_INFO_NOT_AUTHORISED, PKIFAILURE_INFO_SIGNER_NOT_TRUSTED, PKIFAILURE_INFO_SYSTEM_FAILURE, PKIFAILURE_INFO_SYSTEM_UNAVAIL, PKIFAILURE_INFO_TIME_NOT_AVAILABLE, PKIFAILURE_INFO_TRANSACTION_ID_IN_USE, PKIFAILURE_INFO_UNACCEPTED_EXTENSION, PKIFAILURE_INFO_UNACCEPTED_POLICY, PKIFAILURE_INFO_UNSUPPORTED_VERSION, PKIFAILURE_INFO_WRONG_AUTHORITY, PKIFAILURE_INFO_WRONG_INTEGRITY, PKISTATUS_INFO_ACCEPTED, PKISTATUS_INFO_GRANTED, PKISTATUS_INFO_GRANTED_WITH_MODS, PKISTATUS_INFO_KEY_UPDATE_WARNING, PKISTATUS_INFO_REJECTION, PKISTATUS_INFO_REVOCATION_NOTIFICATION, PKISTATUS_INFO_REVOCATION_WARNING, PKISTATUS_INFO_WAITING, PP_CHANGE_PASSWORD, PP_CNT_ENTER_BY_SN, PP_CNT_KEYS_COUNT, PP_CONTAINER, PP_DEL_PROFILE, PP_ENUM_CNT_PRIV_KEYS, PP_ENUM_EXCH_KEY_ALG, PP_ENUM_KEYSTORAGE, PP_ENUM_LICENSES, PP_ENUM_SIGN_KEY_ALG, PP_ENUMALGS, PP_ENUMALGS_EX, PP_ENUMPROFILES, PP_LAST_ERROR, PP_VERSION, PRIVATEKEYBLOB_PKCS12, PRIVATEKEYBLOB_PKCS8, PUBLICKEYBLOB, PUBLICKEYBLOB_CERT, PUBLICKEYBLOB_CMP, PUBLICKEYBLOB_CMP_B64, PUBLICKEYBLOB_CRL, PUBLICKEYBLOB_OCSP, PUBLICKEYBLOB_OCSP_B64, PUBLICKEYBLOB_REQ_P10, PUBLICKEYBLOB_REQ_P10_PEM, PUBLICKEYBLOB_REQ_P7, PUBLICKEYBLOB_REQ_P7_PEM, PUBLICKEYBLOB_SUBJ_KEY, PUBLICKEYBLOB_SUBJ_KEY_PARAM, PV_TABLE, REVOCATION, SHA1WITHRSA, SIMPLEBLOB, SIMPLEBLOB_P7, SIMPLEBLOB_P7_B64, SUN_CPU_ENDIAN, SUN_CPU_ENDIAN_BIG, SUN_CPU_ENDIAN_LITTLE, TUMAR_HASH_ALG_ID, UPDATING, URL_ALG_EXCH, URL_ALG_SIGN, URL_CONT, URL_DEV, URL_NAME, URL_PARAM, URL_PASS, URL_SN, URL_SN_SIZE, URL_USER, VPKC, VSD, ZERO
 
Constructor Summary
TumarCspFunctions()
           
 
Method Summary
static java.lang.Number cpAcquireContext(java.lang.String pszContainer, int dwFlags, int pVTable, byte[] reserved)
          Deprecated. replaced by cpAcquireContext(String pszContainer, int dwFlags, Number pVTable)
static java.lang.Number cpAcquireContext(java.lang.String pszContainer, int dwFlags, java.lang.Number pVTable)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpAcquireContext

Purpose: Function is used to acquire a context handle to a cryptograghic service provider (CSP).

static java.lang.Number cpCreateHash(java.lang.Number hProv, int algId, java.lang.Number hKey, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpCreateHash

Purpose: initiate the hashing of a stream of data

static java.lang.String cpCreateProfile(java.lang.String name, java.lang.String dev, java.lang.String user, java.lang.String pass, java.lang.String param, java.lang.String cont, int alg_exch, int alg_sign, java.lang.Number hProv)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpCreateProfile

Purpose: Создание профайла.

static java.lang.String cpCreateUrl(java.lang.String name, java.lang.String dev, java.lang.String user, java.lang.String pass, java.lang.String param, java.lang.String cont, int alg_exch, int alg_sign, java.lang.Number hProv)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpCreateUrl

Purpose: Создание URL.

static byte[] cpDecrypt(java.lang.Number hProv, java.lang.Number hKey, java.lang.Number hHash, int bFinal, int dwFlags, byte[] pbData, int pdwDataLen)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpDecrypt

Purpose: Decrypt data

static java.lang.Number cpDeriveKey(java.lang.Number hProv, int algId, java.lang.Number hHash, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpDeriveKey

Purpose: Derive cryptographic keys from base data

static int cpDestroyHash(java.lang.Number hProv, java.lang.Number phHash)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpDestroyHash

Purpose: Destroy the hash object

static int cpDestroyKey(java.lang.Number hProv, java.lang.Number hKey)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpDestroyKey

Purpose: Destroys the cryptographic key that is being referenced with the hKey parameter

static java.lang.Number cpDuplicateHash(java.lang.Number hProv, java.lang.Number hHash, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpDuplicateHash

Purpose: Duplicate Hash

static java.lang.Number cpDuplicateKey(java.lang.Number hProv, java.lang.Number hKey, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpDuplicateKey

Purpose: CPDuplicateKey

static byte[] cpEncrypt(java.lang.Number hProv, java.lang.Number hKey, java.lang.Number hHash, int bFinal, int dwFlags, byte[] pbData, int pdwDataLen, int dwBufLen)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpEncrypt

Purpose: Encrypt data

static byte[] cpExportKeyData(java.lang.Number hProv, java.lang.Number hKey, byte[] pubKeyData, int dwBlobType, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpExportKeyDataSecond

Purpose: Export cryptographic keys out of a CSP in a secure manner

static byte[] cpExportKeyData(java.lang.Number hProv, java.lang.Number hKey, java.lang.Number hExpKey, int dwBlobType, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpExportKeyData

Purpose: Export cryptographic keys out of a CSP in a secure manner

static byte[] cpExportKeyDataEx(java.lang.Number hProv, java.lang.Number hKey, java.lang.Number hExpKey, int dwBlobType, int dwFlags, int dwSizeBlob)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpExportKeyData

Purpose: Export cryptographic keys out of a CSP in a secure manner

static int cpExportKeySize(java.lang.Number hProv, java.lang.Number hKey, java.lang.Number hExpKey, int dwBlobType, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpExportKeySize

Purpose: Export cryptographic keys out of a CSP in a secure manner

static java.lang.Number cpGenKey(java.lang.Number hProv, int algId, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpGenKey

Purpose: Generate cryptographic keys

static byte[] cpGenRandom(java.lang.Number hProv, int dwLen)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpGenRandom

Purpose: Used to fill a buffer with random bytes

static byte[] cpGetDataFromUrl(java.lang.Number hProv, java.lang.String url, int type)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpGetDataFromUrl

Purpose: Извлечение данных из URL

static byte[] cpGetHashParamData(java.lang.Number hProv, java.lang.Number hHash, int dwParam, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpGetHashParamData

Purpose: Allows applications to get various aspects of the operations of a hash

static int cpGetHashParamSize(java.lang.Number hProv, java.lang.Number hHash, int dwParam, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpGetHashParamSize

Purpose: Allows applications to get various aspects of the operations of a hash

static byte[] cpGetKeyParamData(java.lang.Number hProv, java.lang.Number hKey, int dwParam, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpGetKeyParamData

Purpose: Allows applications to get various aspects of the operations of a key

static int cpGetKeyParamSize(java.lang.Number hProv, java.lang.Number hKey, int dwParam, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpGetKeyParamSize

Purpose: Allows applications to get various aspects of the operations of a key

static byte[] cpGetProvParamByte(java.lang.Number hProv, int dwParam, int dwFlags, int dwField)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpGetProvParamByte

Purpose: Allows applications to get various aspects of the operations of a provider

static int cpGetProvParamSize(java.lang.Number hProv, int dwParam, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpGetProvParamSize

Purpose: Allows applications to get various aspects of the operations of a provider

static int cpGetTumarCspBit()
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpGetTumarCspBit

Purpose: Получение разрядности криптопровайдера. 32 или 64 бита.

static byte[] cpGetTumarCspBuild()
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpGetTumarCspBuild

Purpose: Получение версии криптопровайдера.

static java.lang.Number cpGetUserKey(java.lang.Number hProv, int dwKeySpec)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpGetUserKey

Purpose: Gets a handle to a permanent user key

static int cpHashData(java.lang.Number hProv, java.lang.Number hHash, byte[] pbData, int dwDataLen, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpHashData

Purpose: Compute the cryptographic hash on a stream of data

static int cpHashSessionKey(java.lang.Number hProv, java.lang.Number hHash, java.lang.Number hKey, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpHashSessionKey

Purpose: Compute the cryptograghic hash on a key object

static java.lang.Number cpImportKey(java.lang.Number hProv, byte[] pbData, int dwDataLen, byte[] impKeyData, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpImportKeySecond

Purpose: Import cryptographic keys

static java.lang.Number cpImportKey(java.lang.Number hProv, byte[] pbData, int dwDataLen, java.lang.Number hPubKey, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpImportKey

Purpose: Import cryptographic keys

static int cpReleaseContext(java.lang.Number hProv, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpReleaseContext

Purpose: Function is used to release a context created by CrytAcquireContext.

static int cpSetHashParam(java.lang.Number hProv, java.lang.Number hHash, int dwParam, byte[] pbData, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpSetHashParam

Purpose: Allows applications to customize various aspects of the operations of a hash

static int cpSetKeyParam(java.lang.Number hProv, java.lang.Number hKey, int dwParam, byte[] pbData, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpSetKeyParam

Purpose: Allows applications to customize various aspects of the operations of a key

static int cpSetProvParam(java.lang.Number hProv, int dwParam, byte[] pbData, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpSetProvParam

Purpose: Allows applications to customize various aspects of the operations of a provider

static byte[] cpSignHashData(java.lang.Number hProv, java.lang.Number hHash, int dwKeySpec, java.lang.String sDescription, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpSignHashData

Purpose: Create a digital signature from a hash

static byte[] cpSignHashData(java.lang.Number hProv, java.lang.Number hHash, int dwKeySpec, java.lang.String sDescription, int dwFlags, int size)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpSignHashData

Purpose: Create a digital signature from a hash

static int cpSignHashSize(java.lang.Number hProv, java.lang.Number hHash, int dwKeySpec, java.lang.String sDescription, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpSignHashSize

Purpose: Create a digital signature from a hash

static java.lang.String cpUrlToNewUrl(java.lang.String url, java.lang.String param, int type, java.lang.Number hProv)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpUrlToNewUrl

Purpose: Изменение данных в URL

static int cpVerifySignature(java.lang.Number hProv, java.lang.Number hHash, byte[] pbSignature, int dwSigLen, java.lang.Number hPubKey, java.lang.String sDescription, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpVerifySignature

Purpose: Used to verify a signature against a hash object

static int getLibraryBit()
          Получение разрядности криптопровайдера. 32 или 64 бита
static void initialize(java.lang.String name)
          Загрузка библиотеки (cptumar.dll/libcptumar.so)
 
Methods inherited from class kz.gamma.tumarcsp.LibraryWrapper
cpAcquireContext, cpAcquireContext, cpCreateHash, cpCreateHash, cpCreateProfile, cpCreateProfile, cpCreateUrl, cpCreateUrl, cpDecrypt, cpDecrypt, cpDeriveKey, cpDeriveKey, cpDestroyHash, cpDestroyHash, cpDestroyKey, cpDestroyKey, cpDuplicateHash, cpDuplicateHash, cpDuplicateKey, cpDuplicateKey, cpEncrypt, cpEncrypt, cpExportKeyData, cpExportKeyData, cpExportKeyDataEx, cpExportKeyDataEx, cpExportKeyDataSecond, cpExportKeyDataSecond, cpExportKeySize, cpExportKeySize, cpGenKey, cpGenKey, cpGenRandom, cpGenRandom, cpGetDataFromUrl, cpGetDataFromUrl, cpGetHashParamData, cpGetHashParamData, cpGetHashParamSize, cpGetHashParamSize, cpGetKeyParamData, cpGetKeyParamData, cpGetKeyParamSize, cpGetKeyParamSize, cpGetProvParamByte, cpGetProvParamByte, cpGetProvParamSize, cpGetProvParamSize, cpGetUserKey, cpGetUserKey, cpHashData, cpHashData, cpHashSessionKey, cpHashSessionKey, cpImportKey, cpImportKey, cpImportKeySecond, cpImportKeySecond, cpReleaseContext, cpReleaseContext, cpSetHashParam, cpSetHashParam, cpSetKeyParam, cpSetKeyParam, cpSetProvParam, cpSetProvParam, cpSignHashData, cpSignHashData, cpSignHashDataSecond, cpSignHashDataSecond, cpSignHashSize, cpSignHashSize, cpUrlToNewUrl, cpUrlToNewUrl, cpVerifySignature, cpVerifySignature
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TumarCspFunctions

public TumarCspFunctions()
Method Detail

getLibraryBit

public static int getLibraryBit()
Получение разрядности криптопровайдера. 32 или 64 бита

Returns:
Разрядность криптопровайдера

cpAcquireContext

@Deprecated
public static java.lang.Number cpAcquireContext(java.lang.String pszContainer,
                                                           int dwFlags,
                                                           int pVTable,
                                                           byte[] reserved)
Deprecated. replaced by cpAcquireContext(String pszContainer, int dwFlags, Number pVTable)

In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpAcquireContext

Purpose: Function is used to acquire a context handle to a cryptograghic service provider (CSP).

Parameters:
pszContainer - Pointer to a string which is the identity of the logged on user
dwFlags - Flags values
pVTable - Pointer to table of function pointers
reserved - Reserved
Returns:
Handle to a CSP

cpAcquireContext

public static java.lang.Number cpAcquireContext(java.lang.String pszContainer,
                                                int dwFlags,
                                                java.lang.Number pVTable)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpAcquireContext

Purpose: Function is used to acquire a context handle to a cryptograghic service provider (CSP).

Parameters:
pszContainer - Pointer to a string which is the identity of the logged on user
dwFlags - Flags values
pVTable - Pointer to table of function pointers
Returns:
Handle to a CSP

cpReleaseContext

public static int cpReleaseContext(java.lang.Number hProv,
                                   int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpReleaseContext

Purpose: Function is used to release a context created by CrytAcquireContext.

Parameters:
hProv - Handle to a CSP
dwFlags - Flags values
Returns:
If result equals 1, then ok, else error

cpSetProvParam

public static int cpSetProvParam(java.lang.Number hProv,
                                 int dwParam,
                                 byte[] pbData,
                                 int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpSetProvParam

Purpose: Allows applications to customize various aspects of the operations of a provider

Parameters:
hProv - Handle to a CSP
dwParam - Parameter number
pbData - Pointer to data
dwFlags - Flags values
Returns:
If result equals 1, then ok, else error

cpGetProvParamSize

public static int cpGetProvParamSize(java.lang.Number hProv,
                                     int dwParam,
                                     int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpGetProvParamSize

Purpose: Allows applications to get various aspects of the operations of a provider

Parameters:
hProv - Handle to a CSP
dwParam - Parameter number
dwFlags - Flags values
Returns:
Length of parameter data

cpSetKeyParam

public static int cpSetKeyParam(java.lang.Number hProv,
                                java.lang.Number hKey,
                                int dwParam,
                                byte[] pbData,
                                int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpSetKeyParam

Purpose: Allows applications to customize various aspects of the operations of a key

Parameters:
hProv - Handle to a CSP
hKey - Handle to a key
dwParam - Parameter number
pbData - Pointer to data
dwFlags - Flags values
Returns:
If result equals 1, then ok, else error

cpGetKeyParamSize

public static int cpGetKeyParamSize(java.lang.Number hProv,
                                    java.lang.Number hKey,
                                    int dwParam,
                                    int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpGetKeyParamSize

Purpose: Allows applications to get various aspects of the operations of a key

Parameters:
hProv - Handle to a CSP
hKey - Handle to a key
dwParam - Parameter number
dwFlags - Flags values
Returns:
Length of parameter data

cpGetKeyParamData

public static byte[] cpGetKeyParamData(java.lang.Number hProv,
                                       java.lang.Number hKey,
                                       int dwParam,
                                       int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpGetKeyParamData

Purpose: Allows applications to get various aspects of the operations of a key

Parameters:
hProv - Handle to a CSP
hKey - Handle to a key
dwParam - Parameter number
dwFlags - Flags values
Returns:
Pointer to data

cpDestroyKey

public static int cpDestroyKey(java.lang.Number hProv,
                               java.lang.Number hKey)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpDestroyKey

Purpose: Destroys the cryptographic key that is being referenced with the hKey parameter

Parameters:
hProv - Handle to a CSP
hKey - Handle to a key
Returns:
If result equals 1, then ok, else error

cpExportKeySize

public static int cpExportKeySize(java.lang.Number hProv,
                                  java.lang.Number hKey,
                                  java.lang.Number hExpKey,
                                  int dwBlobType,
                                  int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpExportKeySize

Purpose: Export cryptographic keys out of a CSP in a secure manner

Parameters:
hProv - Handle to a CSP
hKey - Handle to the key to export
hExpKey - Handle to the exchange public key value of the destination user
dwBlobType - Type of key blob to be exported
dwFlags - Flags values
Returns:
Length of key blob in bytes

cpExportKeyData

public static byte[] cpExportKeyData(java.lang.Number hProv,
                                     java.lang.Number hKey,
                                     java.lang.Number hExpKey,
                                     int dwBlobType,
                                     int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpExportKeyData

Purpose: Export cryptographic keys out of a CSP in a secure manner

Parameters:
hProv - Handle to a CSP
hKey - Handle to the key to export
hExpKey - Handle to the exchange public key value of the destination user
dwBlobType - Type of key blob to be exported
dwFlags - Flags values
Returns:
Key blob data

cpExportKeyData

public static byte[] cpExportKeyData(java.lang.Number hProv,
                                     java.lang.Number hKey,
                                     byte[] pubKeyData,
                                     int dwBlobType,
                                     int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpExportKeyDataSecond

Purpose: Export cryptographic keys out of a CSP in a secure manner

Parameters:
hProv - Handle to a CSP
hKey - Handle to the key to export
pubKeyData - Export key data. For example, password to key container
dwBlobType - Type of key blob to be exported
dwFlags - Flags values
Returns:
Key blob data

cpExportKeyDataEx

public static byte[] cpExportKeyDataEx(java.lang.Number hProv,
                                       java.lang.Number hKey,
                                       java.lang.Number hExpKey,
                                       int dwBlobType,
                                       int dwFlags,
                                       int dwSizeBlob)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpExportKeyData

Purpose: Export cryptographic keys out of a CSP in a secure manner

Parameters:
hProv - Handle to a CSP
hKey - Handle to the key to export
hExpKey - Handle to the exchange public key value of the destination user
dwBlobType - Type of key blob to be exported
dwFlags - Flags values
Returns:
Key blob data

cpGetUserKey

public static java.lang.Number cpGetUserKey(java.lang.Number hProv,
                                            int dwKeySpec)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpGetUserKey

Purpose: Gets a handle to a permanent user key

Parameters:
hProv - Handle to a CSP
dwKeySpec - Specification of the key to retrieve
Returns:
Pointer to key handle of retrieved key

cpImportKey

public static java.lang.Number cpImportKey(java.lang.Number hProv,
                                           byte[] pbData,
                                           int dwDataLen,
                                           java.lang.Number hPubKey,
                                           int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpImportKey

Purpose: Import cryptographic keys

Parameters:
hProv - Handle to a CSP
pbData - Key blob data
dwDataLen - Length of the key blob data
hPubKey - Handle to the exchange public key value of
dwFlags - Flags values
Returns:
Pointer to the handle to the key which was imported

cpImportKey

public static java.lang.Number cpImportKey(java.lang.Number hProv,
                                           byte[] pbData,
                                           int dwDataLen,
                                           byte[] impKeyData,
                                           int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpImportKeySecond

Purpose: Import cryptographic keys

Parameters:
hProv - Handle to a CSP
pbData - Key blob data
dwDataLen - Length of the key blob data
impKeyData - Import key data. For example, password to key container
dwFlags - Flags values
Returns:
Pointer to the handle to the key which was imported

cpCreateHash

public static java.lang.Number cpCreateHash(java.lang.Number hProv,
                                            int algId,
                                            java.lang.Number hKey,
                                            int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpCreateHash

Purpose: initiate the hashing of a stream of data

Parameters:
hProv - Handle to a CSP
algId - Algorithm identifier of the hash algorithm to be used
hKey - Optional key for MAC algorithms
dwFlags - Flags values
Returns:
Handle to hash object

cpDestroyHash

public static int cpDestroyHash(java.lang.Number hProv,
                                java.lang.Number phHash)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpDestroyHash

Purpose: Destroy the hash object

Parameters:
hProv - Handle to a CSP
phHash - Handle to hash object
Returns:
If result equals 1, then ok, else error

cpGetHashParamSize

public static int cpGetHashParamSize(java.lang.Number hProv,
                                     java.lang.Number hHash,
                                     int dwParam,
                                     int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpGetHashParamSize

Purpose: Allows applications to get various aspects of the operations of a hash

Parameters:
hProv - Handle to a CSP
hHash - Handle to a hash
dwParam - Parameter number
dwFlags - Flags values
Returns:
Length of parameter data

cpGetHashParamData

public static byte[] cpGetHashParamData(java.lang.Number hProv,
                                        java.lang.Number hHash,
                                        int dwParam,
                                        int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpGetHashParamData

Purpose: Allows applications to get various aspects of the operations of a hash

Parameters:
hProv - Handle to a CSP
hHash - Handle to a hash
dwParam - Parameter number
dwFlags - Flags values
Returns:
Pointer to data

cpHashData

public static int cpHashData(java.lang.Number hProv,
                             java.lang.Number hHash,
                             byte[] pbData,
                             int dwDataLen,
                             int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpHashData

Purpose: Compute the cryptographic hash on a stream of data

Parameters:
hProv - Handle to a CSP
hHash - Handle to hash object
pbData - Pointer to data to be hashed
dwDataLen - Length of the data to be hashed
dwFlags - Flags values
Returns:
Maximum length of the data stream the CSP module may handle

cpSignHashSize

public static int cpSignHashSize(java.lang.Number hProv,
                                 java.lang.Number hHash,
                                 int dwKeySpec,
                                 java.lang.String sDescription,
                                 int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpSignHashSize

Purpose: Create a digital signature from a hash

Parameters:
hProv - Handle to a CSP
hHash - Handle to hash object
dwKeySpec - Algorithm identifier of the signature algorithm to be used
sDescription - Description of data to be signed
dwFlags - Flags values
Returns:
Pointer to the len of the signature data

cpSignHashData

public static byte[] cpSignHashData(java.lang.Number hProv,
                                    java.lang.Number hHash,
                                    int dwKeySpec,
                                    java.lang.String sDescription,
                                    int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpSignHashData

Purpose: Create a digital signature from a hash

Parameters:
hProv - Handle to a CSP
hHash - Handle to hash object
dwKeySpec - Specification of the key
sDescription - Description of data to be signed
dwFlags - Flags values
Returns:
Pointer to signature data

cpSignHashData

public static byte[] cpSignHashData(java.lang.Number hProv,
                                    java.lang.Number hHash,
                                    int dwKeySpec,
                                    java.lang.String sDescription,
                                    int dwFlags,
                                    int size)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpSignHashData

Purpose: Create a digital signature from a hash

Parameters:
hProv - Handle to a CSP
hHash - Handle to hash object
dwKeySpec - Specification of the key
sDescription - Description of data to be signed
dwFlags - Flags values
size - Размер для подписи
Returns:
Pointer to signature data

cpVerifySignature

public static int cpVerifySignature(java.lang.Number hProv,
                                    java.lang.Number hHash,
                                    byte[] pbSignature,
                                    int dwSigLen,
                                    java.lang.Number hPubKey,
                                    java.lang.String sDescription,
                                    int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpVerifySignature

Purpose: Used to verify a signature against a hash object

Parameters:
hProv - Handle to a CSP
hHash - Handle to hash object
pbSignature - Pointer to signature data
dwSigLen - Length of the signature data
hPubKey - Handle to the public key for verifying the signature
sDescription - Description of data to be signed
dwFlags - Flags values
Returns:
If result equals 1, then ok, else error

cpDeriveKey

public static java.lang.Number cpDeriveKey(java.lang.Number hProv,
                                           int algId,
                                           java.lang.Number hHash,
                                           int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpDeriveKey

Purpose: Derive cryptographic keys from base data

Parameters:
hProv - Handle to a CSP
algId - Algorithm identifier
hHash - Handle to hash
dwFlags - Flags values
Returns:
Handle to a generated key

cpDuplicateKey

public static java.lang.Number cpDuplicateKey(java.lang.Number hProv,
                                              java.lang.Number hKey,
                                              int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpDuplicateKey

Purpose: CPDuplicateKey

Parameters:
hProv - Handle to a CSP
hKey - Handle to a key
dwFlags - Flags values
Returns:
Handle to a duplicate key

cpGenRandom

public static byte[] cpGenRandom(java.lang.Number hProv,
                                 int dwLen)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpGenRandom

Purpose: Used to fill a buffer with random bytes

Parameters:
hProv - Handle to the user identifcation
dwLen - Number of bytes of random data requested
Returns:
Pointer to the buffer where the random bytes are to be placed

cpGenKey

public static java.lang.Number cpGenKey(java.lang.Number hProv,
                                        int algId,
                                        int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpGenKey

Purpose: Generate cryptographic keys

Parameters:
hProv - Handle to a CSP
algId - Algorithm identifier
dwFlags - Flags values
Returns:
Handle to a generated key

cpDecrypt

public static byte[] cpDecrypt(java.lang.Number hProv,
                               java.lang.Number hKey,
                               java.lang.Number hHash,
                               int bFinal,
                               int dwFlags,
                               byte[] pbData,
                               int pdwDataLen)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpDecrypt

Purpose: Decrypt data

Parameters:
hProv - Handle to the CSP user
hKey - Handle to the key
hHash - Optional handle to a hash
bFinal - Boolean indicating if this is the final block of ciphertext
dwFlags - Flags values
pbData - Data to be decrypted
pdwDataLen - Pointer to the length of the data to be decrypted
Returns:
Decrypted data

cpEncrypt

public static byte[] cpEncrypt(java.lang.Number hProv,
                               java.lang.Number hKey,
                               java.lang.Number hHash,
                               int bFinal,
                               int dwFlags,
                               byte[] pbData,
                               int pdwDataLen,
                               int dwBufLen)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpEncrypt

Purpose: Encrypt data

Parameters:
hProv - Handle to the CSP user
hKey - Handle to the key
hHash - Optional handle to a hash
bFinal - Boolean indicating if this is the final block of plaintext
dwFlags - Flags values
pbData - Data to be encrypted
pdwDataLen - Pointer to the length of the data to be encrypted
dwBufLen - Size of Data buffer
Returns:
Encrypted data

cpDuplicateHash

public static java.lang.Number cpDuplicateHash(java.lang.Number hProv,
                                               java.lang.Number hHash,
                                               int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpDuplicateHash

Purpose: Duplicate Hash

Parameters:
hProv - Handle to a CSP
hHash - Handle to a hash
dwFlags - Flags values
Returns:
Handle to a duplicate hash

cpHashSessionKey

public static int cpHashSessionKey(java.lang.Number hProv,
                                   java.lang.Number hHash,
                                   java.lang.Number hKey,
                                   int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpHashSessionKey

Purpose: Compute the cryptograghic hash on a key object

Parameters:
hProv - Handle to the user identifcation
hHash - Handle to hash object
hKey - Handle to a key object
dwFlags - Flags values
Returns:
CRYPT_FAILED(FALSE, 0) or CRYPT_SUCCEED(TRUE, 1)

cpSetHashParam

public static int cpSetHashParam(java.lang.Number hProv,
                                 java.lang.Number hHash,
                                 int dwParam,
                                 byte[] pbData,
                                 int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpSetHashParam

Purpose: Allows applications to customize various aspects of the operations of a hash

Parameters:
hProv - Handle to a CSP
hHash - Handle to a hash
dwParam - Parameter number
pbData - Pointer to data
dwFlags - Flags values
Returns:
If result equals 1, then ok, else error

cpCreateProfile

public static java.lang.String cpCreateProfile(java.lang.String name,
                                               java.lang.String dev,
                                               java.lang.String user,
                                               java.lang.String pass,
                                               java.lang.String param,
                                               java.lang.String cont,
                                               int alg_exch,
                                               int alg_sign,
                                               java.lang.Number hProv)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpCreateProfile

Purpose: Создание профайла. Добавляется запись в cptumar.conf

Parameters:
name - Наименование профайла
dev - Устройство хранения
user - Наименование ключевого контейнера
pass - Пароль на ключевой контейнер
param - Параметр устройства хранения
cont - Формат ключевого контейнера
alg_exch - Алгоритм на ключевой обмен
alg_sign - Алгоритм на подпись
hProv - Handle to a CSP
Returns:
URL

cpCreateUrl

public static java.lang.String cpCreateUrl(java.lang.String name,
                                           java.lang.String dev,
                                           java.lang.String user,
                                           java.lang.String pass,
                                           java.lang.String param,
                                           java.lang.String cont,
                                           int alg_exch,
                                           int alg_sign,
                                           java.lang.Number hProv)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpCreateUrl

Purpose: Создание URL. Запись не добавляется в cptumar.conf

Parameters:
name - Наименование URL
dev - Устройство хранения
user - Наименование ключевого контейнера
pass - Пароль на ключевой контейнер
param - Параметр устройства хранения
cont - Формат ключевого контейнера
alg_exch - Алгоритм на ключевой обмен
alg_sign - Алгоритм на подпись
hProv - Handle to a CSP
Returns:
URL

cpUrlToNewUrl

public static java.lang.String cpUrlToNewUrl(java.lang.String url,
                                             java.lang.String param,
                                             int type,
                                             java.lang.Number hProv)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpUrlToNewUrl

Purpose: Изменение данных в URL

Parameters:
url - URL
param - Значение параметра
type - Тип параметра:
  • LibraryWrapper.URL_PASS - пароль;
  • LibraryWrapper.URL_SN - серийный номер.
hProv - Handle to a CSP
Returns:
Измененный URL

cpGetProvParamByte

public static byte[] cpGetProvParamByte(java.lang.Number hProv,
                                        int dwParam,
                                        int dwFlags,
                                        int dwField)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpGetProvParamByte

Purpose: Allows applications to get various aspects of the operations of a provider

Parameters:
hProv - Handle to a CSP
dwParam - Parameter number
dwFlags - Flags values
dwField - Field
Returns:
Pointer to data

cpGetTumarCspBuild

public static byte[] cpGetTumarCspBuild()
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpGetTumarCspBuild

Purpose: Получение версии криптопровайдера. Для *nix всегда NULL

Returns:
Версия сборки

cpGetTumarCspBit

public static int cpGetTumarCspBit()
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpGetTumarCspBit

Purpose: Получение разрядности криптопровайдера. 32 или 64 бита.

Returns:
Разрядность криптопровайдера

cpGetDataFromUrl

public static byte[] cpGetDataFromUrl(java.lang.Number hProv,
                                      java.lang.String url,
                                      int type)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpGetDataFromUrl

Purpose: Извлечение данных из URL

Parameters:
hProv - Handle to a CSP
url - URL
type - Тип извлекаемых данных
Returns:
Данные, извлеченные из URL

initialize

public static void initialize(java.lang.String name)
Загрузка библиотеки (cptumar.dll/libcptumar.so)

Parameters:
name - Наименование библиотеки. Например, "cptumar". Параметр используется только при загрузке библиотеки на Android.


Copyright © 1998-2014 Gamma Technologies. All Rights Reserved.