kz.gamma.tumarcsp
Class LibraryWrapper

java.lang.Object
  extended by kz.gamma.tumarcsp.LibraryWrapper
Direct Known Subclasses:
TumarCspFunctions

public class LibraryWrapper
extends java.lang.Object

Класс для вызова native методов


Field Summary
static int ALG_CLASS_DATA_ENCRYPT
           
static int ALG_CLASS_HASH
           
static int ALG_RSA_1536_EXCH
          Алгоритм на ключевой обмен "1.3.6.1.4.1.6801.1.8.21"
static int ALG_SID_GOST
           
static int ALG_SID_RSA_1024
           
static int ALG_SID_SHA_160
           
static int ALG_SID_SHA_256
           
static int ALG_SID_T3DES
           
static int ALG_SID_TG28147
           
static int ALG_SID_TGR3411
           
static int ALG_TYPE_ANY
           
static int ALG_TYPE_BLOCK
           
static int ALG_TYPE_STREAM
           
static int AT_KEYEXCHANGE
           
static int AT_SIGNATURE
           
static int CALG_CMP_KEY
           
static int CALG_GOST
           
static int CALG_MAC
           
static int CALG_SHA_160
           
static int CALG_SHA_160_HMAC
           
static int CALG_SHA_256
           
static int CALG_T3DES
           
static int CALG_TG28147
           
static int CALG_TG28147_IMIT
           
static int CALG_TGR3411
           
static int CCPD
          Certification of Claim of Possession of Data
static java.lang.String CMP_GENERAL_ADD_SECRET
           
static java.lang.String CMP_GENERAL_ADD_USER_DETAILS
           
static java.lang.String CMP_GENERAL_CRL
           
static java.lang.String CMP_GENERAL_CRT_EXCH
           
static java.lang.String CMP_GENERAL_DEL_KEY
           
static java.lang.String CMP_GENERAL_DEL_SECRET
           
static java.lang.String CMP_GENERAL_DEP_KEY
           
static java.lang.String CMP_GENERAL_GET_KEY
           
static java.lang.String CMP_GENERAL_GET_OPER_CA
           
static java.lang.String CMP_GENERAL_GET_SECRET
           
static java.lang.String CMP_GENERAL_GET_USER_DETAILS
           
static java.lang.String CMP_GENERAL_IMPL_CONF
           
static java.lang.String CMP_GENERAL_IT
           
static java.lang.String CMP_GENERAL_MOD_SECRET
           
static java.lang.String CMP_GENERAL_MOD_USER_DETAILS
           
static java.lang.String CMP_GENERAL_PASS
           
static java.lang.String CMP_GENERAL_SRV_WAIT
           
static java.lang.String CMP_GENERAL_TRANS_LIST
           
static int CPD
          Certification of Possession of Data
static int CRT_KEYUSAGE_CERTSIG
           
static int CRT_KEYUSAGE_CRLSIGN
           
static int CRT_KEYUSAGE_DATAENC
           
static int CRT_KEYUSAGE_DECONLY
           
static int CRT_KEYUSAGE_DIGSIGN
           
static int CRT_KEYUSAGE_ENCONLY
           
static int CRT_KEYUSAGE_KEYAGRM
           
static int CRT_KEYUSAGE_KEYENCH
           
static int CRT_KEYUSAGE_NONREPU
           
static int CRT_PURPOSE_CA
           
static int CRT_PURPOSE_DVCS
           
static int CRT_PURPOSE_OCSP
           
static int CRT_PURPOSE_RA
           
static int CRT_PURPOSE_TSA
           
static int CRYPT_CMP_NO_IMP_CONF
          Flag for CPExportKey
static int CRYPT_CPRO_EXPORT
          Flag for CPExportKey
static int CRYPT_DEFAULT_MODE
          Flag for CPExportKey
static int CRYPT_DELETEKEYSET
          Флаг, необходимый для удаления ключа/ключей
static int CRYPT_ECC_EXPORT
          Flag for CPExportKey
static int CRYPT_ECDSA
           
static int CRYPT_EXPORTABLE
          Флаг, используемый для генерации экспортируемого ключа
static int CRYPT_FIRST
          Флаг, используемый в циклах
static int CRYPT_KAZ_EXPORT
          Flag for CPExportKey
static int CRYPT_MODE_CBC
           
static int CRYPT_NEWKEYSET
          Флаг, используемый для генерации ключа
static int CRYPT_NEWKEYSET_OLD
          Флаг, используемый для генерации ключа в старом формате
static int CRYPT_NEWKEYSETEX
          Флаг, используемый для генерации ключа
static int CRYPT_NO_MATH_CACHE
           
static int CRYPT_OBJECT_CMP
           
static int CRYPT_OBJECT_CRL
           
static int CRYPT_OBJECT_CRT
           
static int CRYPT_OBJECT_OCSP
           
static int CRYPT_OBJECT_P10
           
static int CRYPT_OBJECT_REV
           
static int CRYPT_OBJECT_TSP
           
static int CRYPT_OLD_P10_FORMAT
          Flag for CPExportKey
static int CRYPT_OLD_TUM_KEYSET
          Флаг, используемый для генерации ключа
static int CRYPT_P12_STD_EXPORT
          Флаг, необходимый для экспорта ключевой пары в формате PKCS#12 (Open SSL)
static int CRYPT_P12_STD_EXPORT_S
          Флаг, необходимый для экспорта ключевой пары в формате PKCS#12 (Open SSL Server)
static int CRYPT_SIGN_ASN1
           
static int CRYPT_SIGN_PKCS7
           
static int CRYPT_SILENT
           
static int CRYPT_USE_OCSP_LOCATOR
          Flag for CPExportKey
static int CRYPT_VERIFYCONTEXT
          Флаг инициализации без загрузки ключей
static int CRYPT_X509_FORMAT
           
static java.lang.String CRYPTO_PRO_GOST
          Алгоритм ГОСТ 34310 (Крипто Про)
static int DEFAULT_ALG_EXCH
          Алгоритм на ключевой обмен по умолчанию "1.3.6.1.4.1.6801.1.8.8"
static int DEFAULT_ALG_SIGN
          Алгоритм на подпись по умолчанию "1.3.6.1.4.1.6801.1.5.8"
static int EC_CRYPTO_PRO_HASH_ALG_ID
          Алгоритм хеширования ГОСТ (КриптоПро)
static int EC_HASH_ALG_ID
          Алгоритм хеширования ГОСТ (Гамма)
static java.lang.String ECGOST34310
          Алгоритм ГОСТ 34310
static int HP_HASHVAL
           
static int HP_PKCS7_BODY
           
static int HP_PKCS7_CERTIFICATE
           
static int HP_PKCS7_CRT_COUNT
           
static int HP_PKCS7_CUR_SIGN
           
static int HP_PKCS7_DATA
           
static int HP_PKCS7_DATA_SIZE
           
static int HP_PKCS7_ENUM_CERT
           
static int HP_PKCS7_HASH_AID
           
static int HP_PKCS7_SI_DN
           
static int HP_PKCS7_SI_HASH_AID
           
static int HP_PKCS7_SI_SIGN_AID
           
static int HP_PKCS7_SI_SN
           
static int HP_PKCS7_SIGN_COUNT
           
static int HP_PKCS9_CUR_OID
           
static int HP_PKCS9A_DATA
           
static int HP_PKCS9A_SIZE
           
static int HP_PKCS9U_DATA
           
static int HP_PKCS9U_SIZE
           
static int HP_TIME_STAMP_CRT
           
static int HP_TIME_STAMP_OID
           
static int HP_TIME_STAMP_REQ
           
static int HP_TSTAMP_BODY
           
static int HP_TSTAMP_DN
           
static int HP_TSTAMP_HASH
           
static int HP_TSTAMP_NONCE
           
static int HP_TSTAMP_POLICIE
           
static int HP_TSTAMP_SN
           
static int HP_TSTAMP_STSTUS
           
static int HP_TSTAMP_TIME
           
static int ISSUING
          Выпуск
static int KEY_ALG_CODE
          Код алгоритма
static int KEY_ALG_FIRST_LEVEL
          1-ый уровень алгоритма
static int KEY_ALG_FOURTH_LEVEL
          4-ый уровень алгоритма
static int KEY_ALG_ID
          Идентификатор алгоритма
static int KEY_ALG_MAX_LEVEL
          Максимальный уровень алгоритма
static int KEY_ALG_NAME
          Имя алгоритма
static int KEY_ALG_OID
          OID алгоритма
static int KEY_ALG_PUB_BITS
          Public bits
static int KEY_ALG_SEC_BITS
          Security bits
static int KEY_ALG_SECOND_LEVEL
          2-ой уровень алгоритма
static int KEY_ALG_THIRD_LEVEL
          3-ий уровень алгоритма
static int KEY_ALG_TYPE
          Тип алгоритма
static int KEY_ALG_TYPE_DH
          Алгоритм Диффи-Хеллмана
static int KEY_ALG_TYPE_DH_EC_RSA
          Алгоритмы Диффи-Хеллмана, на эллиптических кривых, RSA
static int KEY_ALG_TYPE_EC
          Алгоритм на эллиптических кривых
static int KEY_ALG_TYPE_RSA
          Алгоритм RSA
static int KEY_ALG_ZERO_LEVEL
          0-ой уровень алгоритма.
static int KEY_STATE_ACTIVE
          Статус ключа "Активный"
static int KEY_STATE_NEW
          Статус ключа "Новый"
static int KP_ALGID
          Флаг, используемый для определения идентификатора алгоритма ключа
static int KP_CERTIFICATE
           
static int KP_CERTIFICATE_CA
          Флаг, необходимый для экспорта или импорта сертификата центра сертификации
static int KP_CERTIFICATE_CHAIN
          Флаг, необходимый для экспорта цепочки сертификатов в формате PKCS#7
static int KP_CMP_ADD_KEY
           
static int KP_CMP_CERTIFICATES
           
static int KP_CMP_CERTIFICATES_CA
           
static int KP_CMP_CHECK_AFTER
           
static int KP_CMP_EXP_KEY
           
static int KP_CMP_EXT
          Extension (PKIX)
static int KP_CMP_FAIL
           
static int KP_CMP_GEN_CNT
           
static int KP_CMP_GEN_OID
           
static int KP_CMP_GEN_VAL
           
static int KP_CMP_HASH_ALG
           
static int KP_CMP_MAC_ALG
           
static int KP_CMP_OTP
           
static int KP_CMP_OVALID
          OptionalValidity (CRMF)
static int KP_CMP_RCP_DN
           
static int KP_CMP_RCP_NONCE
           
static int KP_CMP_RCP_SUBJ
           
static int KP_CMP_RR_REASON
           
static int KP_CMP_SECRET
           
static int KP_CMP_SERVER_WAIT
           
static int KP_CMP_SND_DN
           
static int KP_CMP_SND_KID
           
static int KP_CMP_SND_NONCE
           
static int KP_CMP_STATUS
           
static int KP_CMP_TRANS_ID
           
static int KP_CMP_TYPE
           
static int KP_CRT_COUNT
           
static int KP_CRT_ENUM_POLICIES
           
static int KP_CRT_ISSU_DN
           
static int KP_CRT_PURPOSES
           
static int KP_CRT_SUBJ_DN
           
static int KP_CRT_USAGE
           
static int KP_CRT_VFROM
           
static int KP_CRT_VTO
           
static int KP_CUR_CRT_SECTION
           
static int KP_ENUM_CERT
           
static int KP_KEY_SN
          Флаг, используемый для определения серийного номера ключа
static int KP_MODE
           
static int KP_OCSP_REP_CRT_SN
           
static int KP_OCSP_REP_CRT_STATUS
           
static int KP_OCSP_REP_NEXT_UPD
           
static int KP_OCSP_REP_REV_REASON
           
static int KP_OCSP_REP_REV_TIME
           
static int KP_OCSP_REP_STATUS
           
static int KP_OCSP_REP_THIS_UPD
           
static int KP_OCSP_REP_TIME
           
static int KP_PADDING
           
static int KP_PKCS7_DATA
           
static int KP_PKCS7_DATA_SIZE
           
static int KP_USER_KEY
           
static java.lang.String KZ_OID_GOST
          Алгоритм ГОСТ 34310 (KZoid)
static java.lang.String LIBRARY_NAME
          Имя библиотеки
protected static int libraryBit
          Разрядность библиотеки. 32 или 64
static int LICENSE_CREATED
          Дата начала действия лицензии
static int LICENSE_EXPIRES
          Дата окончания действия лицензии
static int LICENSE_LEVEL
          Лицензия на определенный уровень криптопровайдера
static int LICENSE_NAME
          Имя лицензии
static int LICENSE_USER
          Пользователь лицензии
static java.lang.String OID_PKCS9_LOCAL_KEY_ID
           
static java.lang.String OID_PKCS9_SIGNINGTIME
           
static java.lang.String OID_PKCS9_TIMESTAMPATTR
           
static java.lang.String OID_TRANSACTION_ID
           
static int PK_CERTIFICATE
           
static int PK_CREATETIME
           
static int PK_KEY_ALGID
           
static int PK_KEY_EXP_STATE
           
static int PK_KEYSTATE
           
static int PK_PUBLICKEY
           
static int PK_SERIALNUM
           
static int PK_SZOID
           
static int PKCS5_PADDING
           
static int PKCS7_BASE64_ENCODING
           
static int PKCS7_CRT_INCLUDE
           
static int PKCS7_PEM_ENCODING
           
static int PKI_CMP_CANN
           
static int PKI_CMP_CCP
          Cross-Cert.
static int PKI_CMP_CCR
          Cross-Cert.
static int PKI_CMP_CERT_CONF
          Certificate confirm
static int PKI_CMP_CKUANN
           
static int PKI_CMP_CP
          Certification Resp
static int PKI_CMP_CR
          Certification Req
static int PKI_CMP_CRLANN
           
static int PKI_CMP_ERROR
          Error Message
static int PKI_CMP_GENM
          General Message
static int PKI_CMP_GENP
          General Response
static int PKI_CMP_IP
          Initialization Resp
static int PKI_CMP_IR
          Initialization Req
static int PKI_CMP_KRP
           
static int PKI_CMP_KRR
           
static int PKI_CMP_KUP
          Key Update Response
static int PKI_CMP_KUR
          Key Update Request
static int PKI_CMP_NESTED
           
static int PKI_CMP_P10CR
           
static int PKI_CMP_PKI_CONF
          Confirmation
static int PKI_CMP_POPDECC
           
static int PKI_CMP_POPDECR
           
static int PKI_CMP_PP
          Polling response
static int PKI_CMP_PR
          Polling request
static int PKI_CMP_RANN
           
static int PKI_CMP_RP
          Revocation Response
static int PKI_CMP_RR
          Revocation Request
static int PKI_TRANS_STATE_ACCEPT
          Транзакция принята в обработку
static int PKI_TRANS_STATE_ERROR
          Транзакция не обработана в связи с ошибками
static int PKI_TRANS_STATE_WAIT_ADMIN
          Транзакция обработана и ждет подтверждения администратора
static int PKI_TRANS_STATE_WAIT_TIME
          Транзакция не обработана и ждет указанного времени начала обработки
static int PKI_TRANS_STATE_WAIT_USER
          Транзакция обработана и ждет подтверждения пользователя
static int PKI_TRANS_TYPE_CCR
          Транзакция типа Cross-Cert.
static int PKI_TRANS_TYPE_CR
          Транзакция типа Certification
static int PKI_TRANS_TYPE_GENM
          Транзакция типа General Message
static int PKI_TRANS_TYPE_IR
          Транзакция типа Initialization
static int PKI_TRANS_TYPE_KRR
          Транзакция типа Key Recovery
static int PKI_TRANS_TYPE_KUR
          Транзакция типа Key Update
static int PKI_TRANS_TYPE_P10CR
          Транзакция типа PKCS #10 Cert.
static int PKIFAILURE_INFO_ADD_INFO_NOT_AVAILABLE
           
static int PKIFAILURE_INFO_BAD_ALG
          Fail codes
static int PKIFAILURE_INFO_BAD_CERT_ID
           
static int PKIFAILURE_INFO_BAD_CERT_TEMPLATE
           
static int PKIFAILURE_INFO_BAD_DATA_FORMAT
           
static int PKIFAILURE_INFO_BAD_MESSAGE_CHECK
           
static int PKIFAILURE_INFO_BAD_POP
           
static int PKIFAILURE_INFO_BAD_RECIPIENT_NONCE
           
static int PKIFAILURE_INFO_BAD_REQUEST
           
static int PKIFAILURE_INFO_BAD_SENDER_NONCE
           
static int PKIFAILURE_INFO_BAD_TIME
           
static int PKIFAILURE_INFO_CERT_CONFIRMED
           
static int PKIFAILURE_INFO_CERT_REVOKED
           
static int PKIFAILURE_INFO_DUPLICATE_CERT_REQ
           
static int PKIFAILURE_INFO_INCORRECT_DATA
           
static int PKIFAILURE_INFO_MISSING_TIME_STAMP
           
static int PKIFAILURE_INFO_NOT_AUTHORISED
           
static int PKIFAILURE_INFO_SIGNER_NOT_TRUSTED
           
static int PKIFAILURE_INFO_SYSTEM_FAILURE
           
static int PKIFAILURE_INFO_SYSTEM_UNAVAIL
           
static int PKIFAILURE_INFO_TIME_NOT_AVAILABLE
           
static int PKIFAILURE_INFO_TRANSACTION_ID_IN_USE
           
static int PKIFAILURE_INFO_UNACCEPTED_EXTENSION
           
static int PKIFAILURE_INFO_UNACCEPTED_POLICY
           
static int PKIFAILURE_INFO_UNSUPPORTED_VERSION
           
static int PKIFAILURE_INFO_WRONG_AUTHORITY
           
static int PKIFAILURE_INFO_WRONG_INTEGRITY
           
static int PKISTATUS_INFO_ACCEPTED
          Status codes
static int PKISTATUS_INFO_GRANTED
           
static int PKISTATUS_INFO_GRANTED_WITH_MODS
           
static int PKISTATUS_INFO_KEY_UPDATE_WARNING
           
static int PKISTATUS_INFO_REJECTION
           
static int PKISTATUS_INFO_REVOCATION_NOTIFICATION
           
static int PKISTATUS_INFO_REVOCATION_WARNING
           
static int PKISTATUS_INFO_WAITING
           
static int PP_CHANGE_PASSWORD
          Флаг, используемый для изменения пароля
static int PP_CNT_ENTER_BY_SN
          Флаг, используемый для установки состояния ключа
static int PP_CNT_KEYS_COUNT
          Флаг, используемый для получения количества ключей в ключевом контейнере
static int PP_CONTAINER
          Флаг, используемый для определения pszContainer
static int PP_DEL_PROFILE
          Флаг, используемый для удаления профайла
static int PP_ENUM_CNT_PRIV_KEYS
          Флаг, используемый для получения информации о ключах
static int PP_ENUM_EXCH_KEY_ALG
          Флаг, используемый для получения алгоритмов на ключевой обмен
static int PP_ENUM_KEYSTORAGE
          Флаг, используемый для получения устройств
static int PP_ENUM_LICENSES
          Флаг, используемый для получения лицензии
static int PP_ENUM_SIGN_KEY_ALG
          Флаг, используемый для получения алгоритмов на подписывание
static int PP_ENUMALGS
           
static int PP_ENUMALGS_EX
           
static int PP_ENUMPROFILES
          Флаг, используемый для перечисления профайлов
static int PP_LAST_ERROR
          Флаг, необходимый для получения ошибок
static int PP_VERSION
          Флаг, используемый для получения версии
static int PRIVATEKEYBLOB_PKCS12
          Флаг, необходимый для экспорта ключевой пары в формате PKCS#12
static int PRIVATEKEYBLOB_PKCS8
          Флаг, необходимый для экспорта ключа в формате PKCS#8
static int PUBLICKEYBLOB
           
static int PUBLICKEYBLOB_CERT
           
static int PUBLICKEYBLOB_CMP
           
static int PUBLICKEYBLOB_CMP_B64
           
static int PUBLICKEYBLOB_CRL
           
static int PUBLICKEYBLOB_OCSP
           
static int PUBLICKEYBLOB_OCSP_B64
           
static int PUBLICKEYBLOB_REQ_P10
           
static int PUBLICKEYBLOB_REQ_P10_PEM
           
static int PUBLICKEYBLOB_REQ_P7
           
static int PUBLICKEYBLOB_REQ_P7_PEM
           
static int PUBLICKEYBLOB_SUBJ_KEY
           
static int PUBLICKEYBLOB_SUBJ_KEY_PARAM
           
static java.lang.Number PV_TABLE
           
static int REVOCATION
          Отзыв
static java.lang.String SHA1WITHRSA
          Алгоритм RSA
static int SIMPLEBLOB
           
static int SIMPLEBLOB_P7
           
static int SIMPLEBLOB_P7_B64
           
static int SUN_CPU_ENDIAN
           
static int SUN_CPU_ENDIAN_BIG
          Тупоконечный порядок байт
static int SUN_CPU_ENDIAN_LITTLE
          Остроконечный порядок байт
static int TUMAR_HASH_ALG_ID
          Алгоритм хеширования TUMAR (Гамма)
static int UPDATING
          Обновление
static int URL_ALG_EXCH
          Алгоритм на ключевой обмен
static int URL_ALG_SIGN
          Алгоритм на подпись
static int URL_CONT
          Формат ключевого контейнера
static int URL_DEV
          Устройство хранения
static int URL_NAME
          Имя профайла
static int URL_PARAM
          Параметр устройства хранения
static int URL_PASS
          Пароль для доступа к ключевому контейнеру
static int URL_SN
          Серийный номер сертификата/ключа
static int URL_SN_SIZE
          Размер серийного номера сертификата/ключа
static int URL_USER
          Имя ключевого контейнера
static int VPKC
          Validation of Public Key Certificates
static int VSD
          Validation of Digitally Signed Documents
static int ZERO
          Флаг 0
 
Constructor Summary
LibraryWrapper()
           
 
Method Summary
private static int calculateEndian()
          Вычисление порядка представления байт
protected static int cpAcquireContext(java.lang.String pszContainer, int dwFlags, int 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). 32 bit version

protected static long cpAcquireContext(java.lang.String pszContainer, int dwFlags, long 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). 64 bit version

protected static int cpCreateHash(int hProv, int algId, int hKey, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpCreateHash

Purpose: initiate the hashing of a stream of data. 32 bit version

protected static long cpCreateHash(long hProv, int algId, long hKey, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpCreateHash

Purpose: initiate the hashing of a stream of data. 64 bit version

protected 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, int hProv)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpCreateProfile

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

protected 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, long hProv)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpCreateProfile

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

protected 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, int hProv)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpCreateUrl

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

protected 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, long hProv)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpCreateUrl

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

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

Purpose: Decrypt data. 32 bit version

protected static byte[] cpDecrypt(long hProv, long hKey, long hHash, int bFinal, int dwFlags, byte[] pbData, int pdwDataLen)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpDecrypt

Purpose: Decrypt data. 64 bit version

protected static int cpDeriveKey(int hProv, int algId, int hHash, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpDeriveKey

Purpose: Derive cryptographic keys from base data. 32 bit version

protected static long cpDeriveKey(long hProv, int algId, long hHash, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpDeriveKey

Purpose: Derive cryptographic keys from base data. 64 bit version

protected static int cpDestroyHash(int hProv, int hHash)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpDestroyHash

Purpose: Destroy the hash object. 32 bit version

protected static int cpDestroyHash(long hProv, long hHash)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpDestroyHash

Purpose: Destroy the hash object. 64 bit version

protected static int cpDestroyKey(int hProv, int hKey)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpDestroyKey

Purpose: Destroys the cryptographic key that is being referenced with the hKey parameter. 32 bit version

protected static int cpDestroyKey(long hProv, long hKey)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpDestroyKey

Purpose: Destroys the cryptographic key that is being referenced with the hKey parameter. 64 bit version

protected static int cpDuplicateHash(int hProv, int hHash, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpDuplicateHash

Purpose: Duplicate Hash. 32 bit version

protected static long cpDuplicateHash(long hProv, long hHash, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpDuplicateHash

Purpose: Duplicate Hash. 64 bit version

protected static int cpDuplicateKey(int hProv, int hKey, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpDuplicateKey

Purpose: CPDuplicateKey. 32 bit version

protected static long cpDuplicateKey(long hProv, long hKey, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpDuplicateKey

Purpose: CPDuplicateKey. 64 bit version

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

Purpose: Encrypt data. 32 bit version

protected static byte[] cpEncrypt(long hProv, long hKey, long hHash, int bFinal, int dwFlags, byte[] pbData, int pdwDataLen, int dwBufLen)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpEncrypt

Purpose: Encrypt data. 64 bit version

protected static byte[] cpExportKeyData(int hProv, int hKey, int 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. 32 bit version

protected static byte[] cpExportKeyData(long hProv, long hKey, long 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. 64 bit version

protected static byte[] cpExportKeyDataEx(int hProv, int hKey, int hExpKey, int dwBlobType, int dwFlags, int dwSizeBlob)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpExportKeyDataEx

Purpose: Export cryptographic keys out of a CSP in a secure manner. 64 bit version

protected static byte[] cpExportKeyDataEx(long hProv, long hKey, long hExpKey, int dwBlobType, int dwFlags, int dwSizeBlob)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpExportKeyDataEx

Purpose: Export cryptographic keys out of a CSP in a secure manner. 64 bit version

protected static byte[] cpExportKeyDataSecond(int hProv, int 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. 32 bit version

protected static byte[] cpExportKeyDataSecond(long hProv, long 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. 64 bit version

protected static int cpExportKeySize(int hProv, int hKey, int 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. 32 bit version

protected static int cpExportKeySize(long hProv, long hKey, long 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. 64 bit version

protected static int cpGenKey(int hProv, int algId, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpGenKey

Purpose: Generate cryptographic keys. 32 bit version

protected static long cpGenKey(long hProv, int algId, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpGenKey

Purpose: Generate cryptographic keys. 64 bit version

protected static byte[] cpGenRandom(int hProv, int dwLen)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpGenRandom

Purpose: Used to fill a buffer with random bytes. 32 bit version

protected static byte[] cpGenRandom(long hProv, int dwLen)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpGenRandom

Purpose: Used to fill a buffer with random bytes. 64 bit version

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

Purpose: Извлечение данных из URL. 32 bit version

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

Purpose: Извлечение данных из URL. 64 bit version

protected static byte[] cpGetHashParamData(int hProv, int 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. 32 bit version

protected static byte[] cpGetHashParamData(long hProv, long 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. 64 bit version

protected static int cpGetHashParamSize(int hProv, int 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. 32 bit version

protected static int cpGetHashParamSize(long hProv, long 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. 64 bit version

protected static byte[] cpGetKeyParamData(int hProv, int 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. 32 bit version

protected static byte[] cpGetKeyParamData(long hProv, long 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. 64 bit version

protected static int cpGetKeyParamSize(int hProv, int 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. 32 bit version

protected static int cpGetKeyParamSize(long hProv, long 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. 64 bit version

protected static byte[] cpGetProvParamByte(int 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. 32 bit version

protected static byte[] cpGetProvParamByte(long 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. 64 bit version

protected static int cpGetProvParamSize(int 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. 32 bit version

protected static int cpGetProvParamSize(long 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. 64 bit version

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

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

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

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

protected static int cpGetUserKey(int hProv, int dwKeySpec)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpGetUserKey

Purpose: Gets a handle to a permanent user key. 32 bit version

protected static long cpGetUserKey(long hProv, int dwKeySpec)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpGetUserKey

Purpose: Gets a handle to a permanent user key. 64 bit version

protected static int cpHashData(int hProv, int 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. 32 bit version

protected static int cpHashData(long hProv, long 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. 64 bit version

protected static int cpHashSessionKey(int hProv, int hHash, int hKey, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpHashSessionKey

Purpose: Compute the cryptograghic hash on a key object. 32 bit version

protected static int cpHashSessionKey(long hProv, long hHash, long hKey, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpHashSessionKey

Purpose: Compute the cryptograghic hash on a key object. 64 bit version

protected static int cpImportKey(int hProv, byte[] pbData, int dwDataLen, int hImpKey, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpImportKey

Purpose: Import cryptographic keys. 32 bit version

protected static long cpImportKey(long hProv, byte[] pbData, int dwDataLen, long hImpKey, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpImportKey

Purpose: Import cryptographic keys. 64 bit version

protected static int cpImportKeySecond(int hProv, byte[] pbData, int dwDataLen, byte[] impKeyData, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpImportKeySecond

Purpose: Import cryptographic keys. 32 bit version

protected static long cpImportKeySecond(long hProv, byte[] pbData, int dwDataLen, byte[] impKeyData, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpImportKeySecond

Purpose: Import cryptographic keys. 64 bit version

protected static int cpReleaseContext(int hProv, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpReleaseContext

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

protected static int cpReleaseContext(long hProv, int dwFlags)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpReleaseContext

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

protected static int cpSetHashParam(int hProv, int 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. 32 bit version

protected static int cpSetHashParam(long hProv, long 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. 64 bit version

protected static int cpSetKeyParam(int hProv, int 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. 32 bit version

protected static int cpSetKeyParam(long hProv, long 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. 64 bit version

protected static int cpSetProvParam(int 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 32 bit version

protected static int cpSetProvParam(long 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. 64 bit version

protected static byte[] cpSignHashData(int hProv, int 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. 32 bit version

protected static byte[] cpSignHashData(long hProv, long 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. 64 bit version

protected static byte[] cpSignHashDataSecond(int hProv, int hHash, int dwKeySpec, java.lang.String sDescription, int dwFlags, int size)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpSignHashDataSecond

Purpose: Create a digital signature from a hash. 32 bit version

protected static byte[] cpSignHashDataSecond(long hProv, long hHash, int dwKeySpec, java.lang.String sDescription, int dwFlags, int size)
          In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpSignHashDataSecond

Purpose: Create a digital signature from a hash. 64 bit version

protected static int cpSignHashSize(int hProv, int 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. 32 bit version

protected static int cpSignHashSize(long hProv, long 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. 64 bit version

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

Purpose: Изменение данных в URL. 32 bit version

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

Purpose: Изменение данных в URL. 64 bit version

protected static int cpVerifySignature(int hProv, int hHash, byte[] pbSignature, int dwSigLen, int 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. 32 bit version

protected static int cpVerifySignature(long hProv, long hHash, byte[] pbSignature, int dwSigLen, long 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. 64 bit version

private static int getEndianness(java.lang.String result)
           
protected static void initialize(java.lang.String name)
          Загрузка библиотеки (cptumar.dll/libcptumar.so)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

libraryBit

protected static int libraryBit
Разрядность библиотеки. 32 или 64


PP_LAST_ERROR

public static final int PP_LAST_ERROR
Флаг, необходимый для получения ошибок

See Also:
Constant Field Values

PP_CNT_KEYS_COUNT

public static final int PP_CNT_KEYS_COUNT
Флаг, используемый для получения количества ключей в ключевом контейнере

See Also:
Constant Field Values

PP_ENUMPROFILES

public static final int PP_ENUMPROFILES
Флаг, используемый для перечисления профайлов

See Also:
Constant Field Values

PP_ENUM_KEYSTORAGE

public static final int PP_ENUM_KEYSTORAGE
Флаг, используемый для получения устройств

See Also:
Constant Field Values

PP_ENUM_SIGN_KEY_ALG

public static final int PP_ENUM_SIGN_KEY_ALG
Флаг, используемый для получения алгоритмов на подписывание

See Also:
Constant Field Values

PP_ENUM_EXCH_KEY_ALG

public static final int PP_ENUM_EXCH_KEY_ALG
Флаг, используемый для получения алгоритмов на ключевой обмен

See Also:
Constant Field Values

PP_VERSION

public static final int PP_VERSION
Флаг, используемый для получения версии

See Also:
Constant Field Values

PP_ENUM_LICENSES

public static final int PP_ENUM_LICENSES
Флаг, используемый для получения лицензии

See Also:
Constant Field Values

PP_ENUM_CNT_PRIV_KEYS

public static final int PP_ENUM_CNT_PRIV_KEYS
Флаг, используемый для получения информации о ключах

See Also:
Constant Field Values

CRYPT_VERIFYCONTEXT

public static final int CRYPT_VERIFYCONTEXT
Флаг инициализации без загрузки ключей

See Also:
Constant Field Values

KP_CERTIFICATE

public static final int KP_CERTIFICATE
See Also:
Constant Field Values

HP_HASHVAL

public static final int HP_HASHVAL
See Also:
Constant Field Values

AT_KEYEXCHANGE

public static final int AT_KEYEXCHANGE
See Also:
Constant Field Values

AT_SIGNATURE

public static final int AT_SIGNATURE
See Also:
Constant Field Values

CRYPT_FIRST

public static final int CRYPT_FIRST
Флаг, используемый в циклах

See Also:
Constant Field Values

CRYPT_OLD_TUM_KEYSET

public static final int CRYPT_OLD_TUM_KEYSET
Флаг, используемый для генерации ключа

See Also:
Constant Field Values

CRYPT_NEWKEYSET

public static final int CRYPT_NEWKEYSET
Флаг, используемый для генерации ключа

See Also:
Constant Field Values

CRYPT_NEWKEYSETEX

public static final int CRYPT_NEWKEYSETEX
Флаг, используемый для генерации ключа

See Also:
Constant Field Values

CRYPT_NEWKEYSET_OLD

public static final int CRYPT_NEWKEYSET_OLD
Флаг, используемый для генерации ключа в старом формате

See Also:
Constant Field Values

CRYPT_EXPORTABLE

public static final int CRYPT_EXPORTABLE
Флаг, используемый для генерации экспортируемого ключа

See Also:
Constant Field Values

KP_USER_KEY

public static final int KP_USER_KEY
See Also:
Constant Field Values

PUBLICKEYBLOB

public static final int PUBLICKEYBLOB
See Also:
Constant Field Values

LIBRARY_NAME

public static java.lang.String LIBRARY_NAME
Имя библиотеки


PP_CHANGE_PASSWORD

public static final int PP_CHANGE_PASSWORD
Флаг, используемый для изменения пароля

See Also:
Constant Field Values

KP_CERTIFICATE_CA

public static final int KP_CERTIFICATE_CA
Флаг, необходимый для экспорта или импорта сертификата центра сертификации

See Also:
Constant Field Values

KP_CERTIFICATE_CHAIN

public static final int KP_CERTIFICATE_CHAIN
Флаг, необходимый для экспорта цепочки сертификатов в формате PKCS#7

See Also:
Constant Field Values

ZERO

public static final int ZERO
Флаг 0

See Also:
Constant Field Values

CRYPT_DELETEKEYSET

public static final int CRYPT_DELETEKEYSET
Флаг, необходимый для удаления ключа/ключей

See Also:
Constant Field Values

PP_ENUMALGS_EX

public static final int PP_ENUMALGS_EX
See Also:
Constant Field Values

PP_ENUMALGS

public static final int PP_ENUMALGS
See Also:
Constant Field Values

PP_CNT_ENTER_BY_SN

public static final int PP_CNT_ENTER_BY_SN
Флаг, используемый для установки состояния ключа

See Also:
Constant Field Values

CRYPT_SILENT

public static final int CRYPT_SILENT
See Also:
Constant Field Values

KP_ALGID

public static final int KP_ALGID
Флаг, используемый для определения идентификатора алгоритма ключа

See Also:
Constant Field Values

PP_CONTAINER

public static final int PP_CONTAINER
Флаг, используемый для определения pszContainer

See Also:
Constant Field Values

URL_NAME

public static final int URL_NAME
Имя профайла

See Also:
Constant Field Values

URL_DEV

public static final int URL_DEV
Устройство хранения

See Also:
Constant Field Values

URL_USER

public static final int URL_USER
Имя ключевого контейнера

See Also:
Constant Field Values

URL_PASS

public static final int URL_PASS
Пароль для доступа к ключевому контейнеру

See Also:
Constant Field Values

URL_PARAM

public static final int URL_PARAM
Параметр устройства хранения

See Also:
Constant Field Values

URL_CONT

public static final int URL_CONT
Формат ключевого контейнера

See Also:
Constant Field Values

URL_ALG_EXCH

public static final int URL_ALG_EXCH
Алгоритм на ключевой обмен

See Also:
Constant Field Values

URL_ALG_SIGN

public static final int URL_ALG_SIGN
Алгоритм на подпись

See Also:
Constant Field Values

URL_SN

public static final int URL_SN
Серийный номер сертификата/ключа

See Also:
Constant Field Values

URL_SN_SIZE

public static final int URL_SN_SIZE
Размер серийного номера сертификата/ключа

See Also:
Constant Field Values

PP_DEL_PROFILE

public static final int PP_DEL_PROFILE
Флаг, используемый для удаления профайла

See Also:
Constant Field Values

KEY_STATE_ACTIVE

public static final int KEY_STATE_ACTIVE
Статус ключа "Активный"

See Also:
Constant Field Values

KEY_STATE_NEW

public static final int KEY_STATE_NEW
Статус ключа "Новый"

See Also:
Constant Field Values

PV_TABLE

public static final java.lang.Number PV_TABLE

SUN_CPU_ENDIAN_LITTLE

public static final int SUN_CPU_ENDIAN_LITTLE
Остроконечный порядок байт

See Also:
Constant Field Values

SUN_CPU_ENDIAN_BIG

public static final int SUN_CPU_ENDIAN_BIG
Тупоконечный порядок байт

See Also:
Constant Field Values

SUN_CPU_ENDIAN

public static final int SUN_CPU_ENDIAN

KEY_ALG_TYPE_DH_EC_RSA

public static final int KEY_ALG_TYPE_DH_EC_RSA
Алгоритмы Диффи-Хеллмана, на эллиптических кривых, RSA

See Also:
Constant Field Values

KEY_ALG_TYPE_DH

public static final int KEY_ALG_TYPE_DH
Алгоритм Диффи-Хеллмана

See Also:
Constant Field Values

KEY_ALG_TYPE_EC

public static final int KEY_ALG_TYPE_EC
Алгоритм на эллиптических кривых

See Also:
Constant Field Values

KEY_ALG_TYPE_RSA

public static final int KEY_ALG_TYPE_RSA
Алгоритм RSA

See Also:
Constant Field Values

KEY_ALG_CODE

public static final int KEY_ALG_CODE
Код алгоритма

See Also:
Constant Field Values

KEY_ALG_ID

public static final int KEY_ALG_ID
Идентификатор алгоритма

See Also:
Constant Field Values

KEY_ALG_SEC_BITS

public static final int KEY_ALG_SEC_BITS
Security bits

See Also:
Constant Field Values

KEY_ALG_PUB_BITS

public static final int KEY_ALG_PUB_BITS
Public bits

See Also:
Constant Field Values

KEY_ALG_OID

public static final int KEY_ALG_OID
OID алгоритма

See Also:
Constant Field Values

KEY_ALG_NAME

public static final int KEY_ALG_NAME
Имя алгоритма

See Also:
Constant Field Values

KEY_ALG_TYPE

public static final int KEY_ALG_TYPE
Тип алгоритма

See Also:
Constant Field Values

KEY_ALG_MAX_LEVEL

public static final int KEY_ALG_MAX_LEVEL
Максимальный уровень алгоритма

See Also:
Constant Field Values

KEY_ALG_ZERO_LEVEL

public static final int KEY_ALG_ZERO_LEVEL
0-ой уровень алгоритма. В состав входят все алгоритмы 1-го, 2-го, 3-го, 4-го уровней и другие алгоритмы

See Also:
Constant Field Values

KEY_ALG_FIRST_LEVEL

public static final int KEY_ALG_FIRST_LEVEL
1-ый уровень алгоритма

See Also:
Constant Field Values

KEY_ALG_SECOND_LEVEL

public static final int KEY_ALG_SECOND_LEVEL
2-ой уровень алгоритма

See Also:
Constant Field Values

KEY_ALG_THIRD_LEVEL

public static final int KEY_ALG_THIRD_LEVEL
3-ий уровень алгоритма

See Also:
Constant Field Values

KEY_ALG_FOURTH_LEVEL

public static final int KEY_ALG_FOURTH_LEVEL
4-ый уровень алгоритма

See Also:
Constant Field Values

DEFAULT_ALG_SIGN

public static final int DEFAULT_ALG_SIGN
Алгоритм на подпись по умолчанию "1.3.6.1.4.1.6801.1.5.8"

See Also:
Constant Field Values

DEFAULT_ALG_EXCH

public static final int DEFAULT_ALG_EXCH
Алгоритм на ключевой обмен по умолчанию "1.3.6.1.4.1.6801.1.8.8"

See Also:
Constant Field Values

ALG_RSA_1536_EXCH

public static final int ALG_RSA_1536_EXCH
Алгоритм на ключевой обмен "1.3.6.1.4.1.6801.1.8.21"

See Also:
Constant Field Values

PK_CREATETIME

public static final int PK_CREATETIME
See Also:
Constant Field Values

PK_SZOID

public static final int PK_SZOID
See Also:
Constant Field Values

PK_SERIALNUM

public static final int PK_SERIALNUM
See Also:
Constant Field Values

PK_PUBLICKEY

public static final int PK_PUBLICKEY
See Also:
Constant Field Values

PK_CERTIFICATE

public static final int PK_CERTIFICATE
See Also:
Constant Field Values

PK_KEYSTATE

public static final int PK_KEYSTATE
See Also:
Constant Field Values

PK_KEY_EXP_STATE

public static final int PK_KEY_EXP_STATE
See Also:
Constant Field Values

PK_KEY_ALGID

public static final int PK_KEY_ALGID
See Also:
Constant Field Values

LICENSE_USER

public static final int LICENSE_USER
Пользователь лицензии

See Also:
Constant Field Values

LICENSE_NAME

public static final int LICENSE_NAME
Имя лицензии

See Also:
Constant Field Values

LICENSE_CREATED

public static final int LICENSE_CREATED
Дата начала действия лицензии

See Also:
Constant Field Values

LICENSE_EXPIRES

public static final int LICENSE_EXPIRES
Дата окончания действия лицензии

See Also:
Constant Field Values

LICENSE_LEVEL

public static final int LICENSE_LEVEL
Лицензия на определенный уровень криптопровайдера

See Also:
Constant Field Values

CALG_CMP_KEY

public static final int CALG_CMP_KEY
See Also:
Constant Field Values

ALG_SID_SHA_160

public static final int ALG_SID_SHA_160
See Also:
Constant Field Values

ALG_SID_SHA_256

public static final int ALG_SID_SHA_256
See Also:
Constant Field Values

CALG_MAC

public static final int CALG_MAC
See Also:
Constant Field Values

CALG_SHA_160_HMAC

public static final int CALG_SHA_160_HMAC
See Also:
Constant Field Values

ALG_CLASS_DATA_ENCRYPT

public static final int ALG_CLASS_DATA_ENCRYPT
See Also:
Constant Field Values

ALG_TYPE_BLOCK

public static final int ALG_TYPE_BLOCK
See Also:
Constant Field Values

ALG_TYPE_STREAM

public static final int ALG_TYPE_STREAM
See Also:
Constant Field Values

ALG_CLASS_HASH

public static final int ALG_CLASS_HASH
See Also:
Constant Field Values

ALG_TYPE_ANY

public static final int ALG_TYPE_ANY
See Also:
Constant Field Values

ALG_SID_TGR3411

public static final int ALG_SID_TGR3411
See Also:
Constant Field Values

ALG_SID_T3DES

public static final int ALG_SID_T3DES
See Also:
Constant Field Values

ALG_SID_GOST

public static final int ALG_SID_GOST
See Also:
Constant Field Values

ALG_SID_TG28147

public static final int ALG_SID_TG28147
See Also:
Constant Field Values

CALG_SHA_160

public static final int CALG_SHA_160
See Also:
Constant Field Values

CALG_SHA_256

public static final int CALG_SHA_256
See Also:
Constant Field Values

CALG_TGR3411

public static final int CALG_TGR3411
See Also:
Constant Field Values

CALG_T3DES

public static final int CALG_T3DES
See Also:
Constant Field Values

CALG_GOST

public static final int CALG_GOST
See Also:
Constant Field Values

CALG_TG28147

public static final int CALG_TG28147
See Also:
Constant Field Values

CALG_TG28147_IMIT

public static final int CALG_TG28147_IMIT
See Also:
Constant Field Values

KP_CMP_FAIL

public static final int KP_CMP_FAIL
See Also:
Constant Field Values

KP_CMP_CHECK_AFTER

public static final int KP_CMP_CHECK_AFTER
See Also:
Constant Field Values

KP_CMP_STATUS

public static final int KP_CMP_STATUS
See Also:
Constant Field Values

KP_CMP_SERVER_WAIT

public static final int KP_CMP_SERVER_WAIT
See Also:
Constant Field Values

KP_CMP_ADD_KEY

public static final int KP_CMP_ADD_KEY
See Also:
Constant Field Values

KP_CMP_TYPE

public static final int KP_CMP_TYPE
See Also:
Constant Field Values

KP_CMP_TRANS_ID

public static final int KP_CMP_TRANS_ID
See Also:
Constant Field Values

KP_CMP_SND_NONCE

public static final int KP_CMP_SND_NONCE
See Also:
Constant Field Values

KP_CMP_RCP_NONCE

public static final int KP_CMP_RCP_NONCE
See Also:
Constant Field Values

KP_CMP_HASH_ALG

public static final int KP_CMP_HASH_ALG
See Also:
Constant Field Values

KP_CMP_MAC_ALG

public static final int KP_CMP_MAC_ALG
See Also:
Constant Field Values

KP_CMP_SND_KID

public static final int KP_CMP_SND_KID
See Also:
Constant Field Values

KP_CMP_SECRET

public static final int KP_CMP_SECRET
See Also:
Constant Field Values

KP_CMP_EXP_KEY

public static final int KP_CMP_EXP_KEY
See Also:
Constant Field Values

KP_CMP_RCP_SUBJ

public static final int KP_CMP_RCP_SUBJ
See Also:
Constant Field Values

KP_CMP_GEN_OID

public static final int KP_CMP_GEN_OID
See Also:
Constant Field Values

KP_CMP_GEN_VAL

public static final int KP_CMP_GEN_VAL
See Also:
Constant Field Values

KP_CMP_GEN_CNT

public static final int KP_CMP_GEN_CNT
See Also:
Constant Field Values

KP_CMP_SND_DN

public static final int KP_CMP_SND_DN
See Also:
Constant Field Values

KP_CMP_RCP_DN

public static final int KP_CMP_RCP_DN
See Also:
Constant Field Values

KP_CMP_RR_REASON

public static final int KP_CMP_RR_REASON
See Also:
Constant Field Values

KP_CUR_CRT_SECTION

public static final int KP_CUR_CRT_SECTION
See Also:
Constant Field Values

KP_CRT_COUNT

public static final int KP_CRT_COUNT
See Also:
Constant Field Values

KP_ENUM_CERT

public static final int KP_ENUM_CERT
See Also:
Constant Field Values

KP_CMP_OTP

public static final int KP_CMP_OTP
See Also:
Constant Field Values

KP_CMP_CERTIFICATES

public static final int KP_CMP_CERTIFICATES
See Also:
Constant Field Values

KP_CMP_CERTIFICATES_CA

public static final int KP_CMP_CERTIFICATES_CA
See Also:
Constant Field Values

KP_CMP_OVALID

public static final int KP_CMP_OVALID
OptionalValidity (CRMF)

See Also:
Constant Field Values

KP_CMP_EXT

public static final int KP_CMP_EXT
Extension (PKIX)

See Also:
Constant Field Values

PKI_CMP_IR

public static final int PKI_CMP_IR
Initialization Req

See Also:
Constant Field Values

PKI_CMP_IP

public static final int PKI_CMP_IP
Initialization Resp

See Also:
Constant Field Values

PKI_CMP_CR

public static final int PKI_CMP_CR
Certification Req

See Also:
Constant Field Values

PKI_CMP_CP

public static final int PKI_CMP_CP
Certification Resp

See Also:
Constant Field Values

PKI_CMP_P10CR

public static final int PKI_CMP_P10CR
See Also:
Constant Field Values

PKI_CMP_POPDECC

public static final int PKI_CMP_POPDECC
See Also:
Constant Field Values

PKI_CMP_POPDECR

public static final int PKI_CMP_POPDECR
See Also:
Constant Field Values

PKI_CMP_KUR

public static final int PKI_CMP_KUR
Key Update Request

See Also:
Constant Field Values

PKI_CMP_KUP

public static final int PKI_CMP_KUP
Key Update Response

See Also:
Constant Field Values

PKI_CMP_KRR

public static final int PKI_CMP_KRR
See Also:
Constant Field Values

PKI_CMP_KRP

public static final int PKI_CMP_KRP
See Also:
Constant Field Values

PKI_CMP_RR

public static final int PKI_CMP_RR
Revocation Request

See Also:
Constant Field Values

PKI_CMP_RP

public static final int PKI_CMP_RP
Revocation Response

See Also:
Constant Field Values

PKI_CMP_CCR

public static final int PKI_CMP_CCR
Cross-Cert. Request

See Also:
Constant Field Values

PKI_CMP_CCP

public static final int PKI_CMP_CCP
Cross-Cert. Resp

See Also:
Constant Field Values

PKI_CMP_CKUANN

public static final int PKI_CMP_CKUANN
See Also:
Constant Field Values

PKI_CMP_CANN

public static final int PKI_CMP_CANN
See Also:
Constant Field Values

PKI_CMP_RANN

public static final int PKI_CMP_RANN
See Also:
Constant Field Values

PKI_CMP_CRLANN

public static final int PKI_CMP_CRLANN
See Also:
Constant Field Values

PKI_CMP_PKI_CONF

public static final int PKI_CMP_PKI_CONF
Confirmation

See Also:
Constant Field Values

PKI_CMP_NESTED

public static final int PKI_CMP_NESTED
See Also:
Constant Field Values

PKI_CMP_GENM

public static final int PKI_CMP_GENM
General Message

See Also:
Constant Field Values

PKI_CMP_GENP

public static final int PKI_CMP_GENP
General Response

See Also:
Constant Field Values

PKI_CMP_ERROR

public static final int PKI_CMP_ERROR
Error Message

See Also:
Constant Field Values

PKI_CMP_CERT_CONF

public static final int PKI_CMP_CERT_CONF
Certificate confirm

See Also:
Constant Field Values

PKI_CMP_PR

public static final int PKI_CMP_PR
Polling request

See Also:
Constant Field Values

PKI_CMP_PP

public static final int PKI_CMP_PP
Polling response

See Also:
Constant Field Values

SIMPLEBLOB

public static final int SIMPLEBLOB
See Also:
Constant Field Values

KP_KEY_SN

public static final int KP_KEY_SN
Флаг, используемый для определения серийного номера ключа

See Also:
Constant Field Values

KP_OCSP_REP_STATUS

public static final int KP_OCSP_REP_STATUS
See Also:
Constant Field Values

KP_OCSP_REP_TIME

public static final int KP_OCSP_REP_TIME
See Also:
Constant Field Values

KP_OCSP_REP_CRT_SN

public static final int KP_OCSP_REP_CRT_SN
See Also:
Constant Field Values

KP_OCSP_REP_CRT_STATUS

public static final int KP_OCSP_REP_CRT_STATUS
See Also:
Constant Field Values

KP_OCSP_REP_REV_TIME

public static final int KP_OCSP_REP_REV_TIME
See Also:
Constant Field Values

KP_OCSP_REP_REV_REASON

public static final int KP_OCSP_REP_REV_REASON
See Also:
Constant Field Values

KP_OCSP_REP_THIS_UPD

public static final int KP_OCSP_REP_THIS_UPD
See Also:
Constant Field Values

KP_OCSP_REP_NEXT_UPD

public static final int KP_OCSP_REP_NEXT_UPD
See Also:
Constant Field Values

HP_PKCS7_BODY

public static final int HP_PKCS7_BODY
See Also:
Constant Field Values

HP_PKCS7_SIGN_COUNT

public static final int HP_PKCS7_SIGN_COUNT
See Also:
Constant Field Values

HP_PKCS7_CUR_SIGN

public static final int HP_PKCS7_CUR_SIGN
See Also:
Constant Field Values

HP_PKCS9_CUR_OID

public static final int HP_PKCS9_CUR_OID
See Also:
Constant Field Values

HP_PKCS9A_SIZE

public static final int HP_PKCS9A_SIZE
See Also:
Constant Field Values

HP_PKCS9A_DATA

public static final int HP_PKCS9A_DATA
See Also:
Constant Field Values

HP_PKCS9U_SIZE

public static final int HP_PKCS9U_SIZE
See Also:
Constant Field Values

HP_PKCS9U_DATA

public static final int HP_PKCS9U_DATA
See Also:
Constant Field Values

HP_PKCS7_DATA_SIZE

public static final int HP_PKCS7_DATA_SIZE
See Also:
Constant Field Values

HP_PKCS7_DATA

public static final int HP_PKCS7_DATA
See Also:
Constant Field Values

HP_PKCS7_HASH_AID

public static final int HP_PKCS7_HASH_AID
See Also:
Constant Field Values

HP_PKCS7_SI_HASH_AID

public static final int HP_PKCS7_SI_HASH_AID
See Also:
Constant Field Values

HP_PKCS7_SI_SIGN_AID

public static final int HP_PKCS7_SI_SIGN_AID
See Also:
Constant Field Values

HP_PKCS7_SI_SN

public static final int HP_PKCS7_SI_SN
See Also:
Constant Field Values

HP_PKCS7_SI_DN

public static final int HP_PKCS7_SI_DN
See Also:
Constant Field Values

HP_PKCS7_CERTIFICATE

public static final int HP_PKCS7_CERTIFICATE
See Also:
Constant Field Values

HP_PKCS7_CRT_COUNT

public static final int HP_PKCS7_CRT_COUNT
See Also:
Constant Field Values

HP_PKCS7_ENUM_CERT

public static final int HP_PKCS7_ENUM_CERT
See Also:
Constant Field Values

HP_TIME_STAMP_OID

public static final int HP_TIME_STAMP_OID
See Also:
Constant Field Values

HP_TIME_STAMP_CRT

public static final int HP_TIME_STAMP_CRT
See Also:
Constant Field Values

HP_TIME_STAMP_REQ

public static final int HP_TIME_STAMP_REQ
See Also:
Constant Field Values

HP_TSTAMP_BODY

public static final int HP_TSTAMP_BODY
See Also:
Constant Field Values

HP_TSTAMP_STSTUS

public static final int HP_TSTAMP_STSTUS
See Also:
Constant Field Values

HP_TSTAMP_HASH

public static final int HP_TSTAMP_HASH
See Also:
Constant Field Values

HP_TSTAMP_POLICIE

public static final int HP_TSTAMP_POLICIE
See Also:
Constant Field Values

HP_TSTAMP_TIME

public static final int HP_TSTAMP_TIME
See Also:
Constant Field Values

HP_TSTAMP_SN

public static final int HP_TSTAMP_SN
See Also:
Constant Field Values

HP_TSTAMP_DN

public static final int HP_TSTAMP_DN
See Also:
Constant Field Values

HP_TSTAMP_NONCE

public static final int HP_TSTAMP_NONCE
See Also:
Constant Field Values

CRYPT_X509_FORMAT

public static final int CRYPT_X509_FORMAT
See Also:
Constant Field Values

CRYPT_NO_MATH_CACHE

public static final int CRYPT_NO_MATH_CACHE
See Also:
Constant Field Values

CRYPT_ECDSA

public static final int CRYPT_ECDSA
See Also:
Constant Field Values

CRYPT_SIGN_ASN1

public static final int CRYPT_SIGN_ASN1
See Also:
Constant Field Values

CRYPT_SIGN_PKCS7

public static final int CRYPT_SIGN_PKCS7
See Also:
Constant Field Values

PKCS7_CRT_INCLUDE

public static final int PKCS7_CRT_INCLUDE
See Also:
Constant Field Values

PKCS7_PEM_ENCODING

public static final int PKCS7_PEM_ENCODING
See Also:
Constant Field Values

PKCS7_BASE64_ENCODING

public static final int PKCS7_BASE64_ENCODING
See Also:
Constant Field Values

CRYPT_OBJECT_CRT

public static final int CRYPT_OBJECT_CRT
See Also:
Constant Field Values

CRYPT_OBJECT_CRL

public static final int CRYPT_OBJECT_CRL
See Also:
Constant Field Values

CRYPT_OBJECT_P10

public static final int CRYPT_OBJECT_P10
See Also:
Constant Field Values

CRYPT_OBJECT_CMP

public static final int CRYPT_OBJECT_CMP
See Also:
Constant Field Values

CRYPT_OBJECT_REV

public static final int CRYPT_OBJECT_REV
See Also:
Constant Field Values

CRYPT_OBJECT_OCSP

public static final int CRYPT_OBJECT_OCSP
See Also:
Constant Field Values

CRYPT_OBJECT_TSP

public static final int CRYPT_OBJECT_TSP
See Also:
Constant Field Values

KP_CRT_USAGE

public static final int KP_CRT_USAGE
See Also:
Constant Field Values

KP_CRT_PURPOSES

public static final int KP_CRT_PURPOSES
See Also:
Constant Field Values

KP_CRT_ENUM_POLICIES

public static final int KP_CRT_ENUM_POLICIES
See Also:
Constant Field Values

KP_CRT_VFROM

public static final int KP_CRT_VFROM
See Also:
Constant Field Values

KP_CRT_VTO

public static final int KP_CRT_VTO
See Also:
Constant Field Values

KP_CRT_ISSU_DN

public static final int KP_CRT_ISSU_DN
See Also:
Constant Field Values

KP_CRT_SUBJ_DN

public static final int KP_CRT_SUBJ_DN
See Also:
Constant Field Values

CRT_KEYUSAGE_DIGSIGN

public static final int CRT_KEYUSAGE_DIGSIGN
See Also:
Constant Field Values

CRT_KEYUSAGE_NONREPU

public static final int CRT_KEYUSAGE_NONREPU
See Also:
Constant Field Values

CRT_KEYUSAGE_KEYENCH

public static final int CRT_KEYUSAGE_KEYENCH
See Also:
Constant Field Values

CRT_KEYUSAGE_DATAENC

public static final int CRT_KEYUSAGE_DATAENC
See Also:
Constant Field Values

CRT_KEYUSAGE_KEYAGRM

public static final int CRT_KEYUSAGE_KEYAGRM
See Also:
Constant Field Values

CRT_KEYUSAGE_CERTSIG

public static final int CRT_KEYUSAGE_CERTSIG
See Also:
Constant Field Values

CRT_KEYUSAGE_CRLSIGN

public static final int CRT_KEYUSAGE_CRLSIGN
See Also:
Constant Field Values

CRT_KEYUSAGE_ENCONLY

public static final int CRT_KEYUSAGE_ENCONLY
See Also:
Constant Field Values

CRT_KEYUSAGE_DECONLY

public static final int CRT_KEYUSAGE_DECONLY
See Also:
Constant Field Values

CRT_PURPOSE_CA

public static final int CRT_PURPOSE_CA
See Also:
Constant Field Values

CRT_PURPOSE_RA

public static final int CRT_PURPOSE_RA
See Also:
Constant Field Values

CRT_PURPOSE_OCSP

public static final int CRT_PURPOSE_OCSP
See Also:
Constant Field Values

CRT_PURPOSE_TSA

public static final int CRT_PURPOSE_TSA
See Also:
Constant Field Values

CRT_PURPOSE_DVCS

public static final int CRT_PURPOSE_DVCS
See Also:
Constant Field Values

KP_PKCS7_DATA_SIZE

public static final int KP_PKCS7_DATA_SIZE
See Also:
Constant Field Values

KP_PKCS7_DATA

public static final int KP_PKCS7_DATA
See Also:
Constant Field Values

PRIVATEKEYBLOB_PKCS8

public static final int PRIVATEKEYBLOB_PKCS8
Флаг, необходимый для экспорта ключа в формате PKCS#8

See Also:
Constant Field Values

PRIVATEKEYBLOB_PKCS12

public static final int PRIVATEKEYBLOB_PKCS12
Флаг, необходимый для экспорта ключевой пары в формате PKCS#12

See Also:
Constant Field Values

PUBLICKEYBLOB_CERT

public static final int PUBLICKEYBLOB_CERT
See Also:
Constant Field Values

PUBLICKEYBLOB_REQ_P10

public static final int PUBLICKEYBLOB_REQ_P10
See Also:
Constant Field Values

PUBLICKEYBLOB_REQ_P10_PEM

public static final int PUBLICKEYBLOB_REQ_P10_PEM
See Also:
Constant Field Values

PUBLICKEYBLOB_REQ_P7

public static final int PUBLICKEYBLOB_REQ_P7
See Also:
Constant Field Values

PUBLICKEYBLOB_REQ_P7_PEM

public static final int PUBLICKEYBLOB_REQ_P7_PEM
See Also:
Constant Field Values

PUBLICKEYBLOB_SUBJ_KEY

public static final int PUBLICKEYBLOB_SUBJ_KEY
See Also:
Constant Field Values

PUBLICKEYBLOB_SUBJ_KEY_PARAM

public static final int PUBLICKEYBLOB_SUBJ_KEY_PARAM
See Also:
Constant Field Values

PUBLICKEYBLOB_CMP

public static final int PUBLICKEYBLOB_CMP
See Also:
Constant Field Values

PUBLICKEYBLOB_CMP_B64

public static final int PUBLICKEYBLOB_CMP_B64
See Also:
Constant Field Values

PUBLICKEYBLOB_OCSP

public static final int PUBLICKEYBLOB_OCSP
See Also:
Constant Field Values

PUBLICKEYBLOB_OCSP_B64

public static final int PUBLICKEYBLOB_OCSP_B64
See Also:
Constant Field Values

PUBLICKEYBLOB_CRL

public static final int PUBLICKEYBLOB_CRL
See Also:
Constant Field Values

SIMPLEBLOB_P7

public static final int SIMPLEBLOB_P7
See Also:
Constant Field Values

SIMPLEBLOB_P7_B64

public static final int SIMPLEBLOB_P7_B64
See Also:
Constant Field Values

CRYPT_P12_STD_EXPORT

public static final int CRYPT_P12_STD_EXPORT
Флаг, необходимый для экспорта ключевой пары в формате PKCS#12 (Open SSL)

See Also:
Constant Field Values

CRYPT_P12_STD_EXPORT_S

public static final int CRYPT_P12_STD_EXPORT_S
Флаг, необходимый для экспорта ключевой пары в формате PKCS#12 (Open SSL Server)

See Also:
Constant Field Values

CRYPT_CPRO_EXPORT

public static final int CRYPT_CPRO_EXPORT
Flag for CPExportKey

See Also:
Constant Field Values

CRYPT_ECC_EXPORT

public static final int CRYPT_ECC_EXPORT
Flag for CPExportKey

See Also:
Constant Field Values

CRYPT_DEFAULT_MODE

public static final int CRYPT_DEFAULT_MODE
Flag for CPExportKey

See Also:
Constant Field Values

CRYPT_KAZ_EXPORT

public static final int CRYPT_KAZ_EXPORT
Flag for CPExportKey

See Also:
Constant Field Values

CRYPT_CMP_NO_IMP_CONF

public static final int CRYPT_CMP_NO_IMP_CONF
Flag for CPExportKey

See Also:
Constant Field Values

CRYPT_USE_OCSP_LOCATOR

public static final int CRYPT_USE_OCSP_LOCATOR
Flag for CPExportKey

See Also:
Constant Field Values

CRYPT_OLD_P10_FORMAT

public static final int CRYPT_OLD_P10_FORMAT
Flag for CPExportKey

See Also:
Constant Field Values

EC_HASH_ALG_ID

public static final int EC_HASH_ALG_ID
Алгоритм хеширования ГОСТ (Гамма)

See Also:
Constant Field Values

EC_CRYPTO_PRO_HASH_ALG_ID

public static final int EC_CRYPTO_PRO_HASH_ALG_ID
Алгоритм хеширования ГОСТ (КриптоПро)

See Also:
Constant Field Values

TUMAR_HASH_ALG_ID

public static final int TUMAR_HASH_ALG_ID
Алгоритм хеширования TUMAR (Гамма)

See Also:
Constant Field Values

CMP_GENERAL_IT

public static final java.lang.String CMP_GENERAL_IT
See Also:
Constant Field Values

CMP_GENERAL_CRT_EXCH

public static final java.lang.String CMP_GENERAL_CRT_EXCH
See Also:
Constant Field Values

CMP_GENERAL_CRL

public static final java.lang.String CMP_GENERAL_CRL
See Also:
Constant Field Values

CMP_GENERAL_PASS

public static final java.lang.String CMP_GENERAL_PASS
See Also:
Constant Field Values

CMP_GENERAL_IMPL_CONF

public static final java.lang.String CMP_GENERAL_IMPL_CONF
See Also:
Constant Field Values

CMP_GENERAL_SRV_WAIT

public static final java.lang.String CMP_GENERAL_SRV_WAIT
See Also:
Constant Field Values

CMP_GENERAL_DEP_KEY

public static final java.lang.String CMP_GENERAL_DEP_KEY
See Also:
Constant Field Values

CMP_GENERAL_GET_KEY

public static final java.lang.String CMP_GENERAL_GET_KEY
See Also:
Constant Field Values

CMP_GENERAL_DEL_KEY

public static final java.lang.String CMP_GENERAL_DEL_KEY
See Also:
Constant Field Values

CMP_GENERAL_ADD_SECRET

public static final java.lang.String CMP_GENERAL_ADD_SECRET
See Also:
Constant Field Values

CMP_GENERAL_MOD_SECRET

public static final java.lang.String CMP_GENERAL_MOD_SECRET
See Also:
Constant Field Values

CMP_GENERAL_GET_SECRET

public static final java.lang.String CMP_GENERAL_GET_SECRET
See Also:
Constant Field Values

CMP_GENERAL_DEL_SECRET

public static final java.lang.String CMP_GENERAL_DEL_SECRET
See Also:
Constant Field Values

CMP_GENERAL_TRANS_LIST

public static final java.lang.String CMP_GENERAL_TRANS_LIST
See Also:
Constant Field Values

CMP_GENERAL_GET_OPER_CA

public static final java.lang.String CMP_GENERAL_GET_OPER_CA
See Also:
Constant Field Values

CMP_GENERAL_ADD_USER_DETAILS

public static final java.lang.String CMP_GENERAL_ADD_USER_DETAILS
See Also:
Constant Field Values

CMP_GENERAL_MOD_USER_DETAILS

public static final java.lang.String CMP_GENERAL_MOD_USER_DETAILS
See Also:
Constant Field Values

CMP_GENERAL_GET_USER_DETAILS

public static final java.lang.String CMP_GENERAL_GET_USER_DETAILS
See Also:
Constant Field Values

OID_TRANSACTION_ID

public static final java.lang.String OID_TRANSACTION_ID
See Also:
Constant Field Values

OID_PKCS9_TIMESTAMPATTR

public static final java.lang.String OID_PKCS9_TIMESTAMPATTR
See Also:
Constant Field Values

OID_PKCS9_LOCAL_KEY_ID

public static final java.lang.String OID_PKCS9_LOCAL_KEY_ID
See Also:
Constant Field Values

OID_PKCS9_SIGNINGTIME

public static final java.lang.String OID_PKCS9_SIGNINGTIME
See Also:
Constant Field Values

ALG_SID_RSA_1024

public static final int ALG_SID_RSA_1024
See Also:
Constant Field Values

CRYPT_MODE_CBC

public static final int CRYPT_MODE_CBC
See Also:
Constant Field Values

KP_MODE

public static final int KP_MODE
See Also:
Constant Field Values

PKCS5_PADDING

public static final int PKCS5_PADDING
See Also:
Constant Field Values

KP_PADDING

public static final int KP_PADDING
See Also:
Constant Field Values

PKIFAILURE_INFO_BAD_ALG

public static final int PKIFAILURE_INFO_BAD_ALG
Fail codes

See Also:
Constant Field Values

PKIFAILURE_INFO_BAD_MESSAGE_CHECK

public static final int PKIFAILURE_INFO_BAD_MESSAGE_CHECK
See Also:
Constant Field Values

PKIFAILURE_INFO_BAD_REQUEST

public static final int PKIFAILURE_INFO_BAD_REQUEST
See Also:
Constant Field Values

PKIFAILURE_INFO_BAD_TIME

public static final int PKIFAILURE_INFO_BAD_TIME
See Also:
Constant Field Values

PKIFAILURE_INFO_BAD_CERT_ID

public static final int PKIFAILURE_INFO_BAD_CERT_ID
See Also:
Constant Field Values

PKIFAILURE_INFO_BAD_DATA_FORMAT

public static final int PKIFAILURE_INFO_BAD_DATA_FORMAT
See Also:
Constant Field Values

PKIFAILURE_INFO_WRONG_AUTHORITY

public static final int PKIFAILURE_INFO_WRONG_AUTHORITY
See Also:
Constant Field Values

PKIFAILURE_INFO_INCORRECT_DATA

public static final int PKIFAILURE_INFO_INCORRECT_DATA
See Also:
Constant Field Values

PKIFAILURE_INFO_MISSING_TIME_STAMP

public static final int PKIFAILURE_INFO_MISSING_TIME_STAMP
See Also:
Constant Field Values

PKIFAILURE_INFO_BAD_POP

public static final int PKIFAILURE_INFO_BAD_POP
See Also:
Constant Field Values

PKIFAILURE_INFO_CERT_REVOKED

public static final int PKIFAILURE_INFO_CERT_REVOKED
See Also:
Constant Field Values

PKIFAILURE_INFO_CERT_CONFIRMED

public static final int PKIFAILURE_INFO_CERT_CONFIRMED
See Also:
Constant Field Values

PKIFAILURE_INFO_WRONG_INTEGRITY

public static final int PKIFAILURE_INFO_WRONG_INTEGRITY
See Also:
Constant Field Values

PKIFAILURE_INFO_BAD_RECIPIENT_NONCE

public static final int PKIFAILURE_INFO_BAD_RECIPIENT_NONCE
See Also:
Constant Field Values

PKIFAILURE_INFO_TIME_NOT_AVAILABLE

public static final int PKIFAILURE_INFO_TIME_NOT_AVAILABLE
See Also:
Constant Field Values

PKIFAILURE_INFO_UNACCEPTED_POLICY

public static final int PKIFAILURE_INFO_UNACCEPTED_POLICY
See Also:
Constant Field Values

PKIFAILURE_INFO_UNACCEPTED_EXTENSION

public static final int PKIFAILURE_INFO_UNACCEPTED_EXTENSION
See Also:
Constant Field Values

PKIFAILURE_INFO_ADD_INFO_NOT_AVAILABLE

public static final int PKIFAILURE_INFO_ADD_INFO_NOT_AVAILABLE
See Also:
Constant Field Values

PKIFAILURE_INFO_BAD_SENDER_NONCE

public static final int PKIFAILURE_INFO_BAD_SENDER_NONCE
See Also:
Constant Field Values

PKIFAILURE_INFO_BAD_CERT_TEMPLATE

public static final int PKIFAILURE_INFO_BAD_CERT_TEMPLATE
See Also:
Constant Field Values

PKIFAILURE_INFO_SIGNER_NOT_TRUSTED

public static final int PKIFAILURE_INFO_SIGNER_NOT_TRUSTED
See Also:
Constant Field Values

PKIFAILURE_INFO_TRANSACTION_ID_IN_USE

public static final int PKIFAILURE_INFO_TRANSACTION_ID_IN_USE
See Also:
Constant Field Values

PKIFAILURE_INFO_UNSUPPORTED_VERSION

public static final int PKIFAILURE_INFO_UNSUPPORTED_VERSION
See Also:
Constant Field Values

PKIFAILURE_INFO_NOT_AUTHORISED

public static final int PKIFAILURE_INFO_NOT_AUTHORISED
See Also:
Constant Field Values

PKIFAILURE_INFO_SYSTEM_UNAVAIL

public static final int PKIFAILURE_INFO_SYSTEM_UNAVAIL
See Also:
Constant Field Values

PKIFAILURE_INFO_SYSTEM_FAILURE

public static final int PKIFAILURE_INFO_SYSTEM_FAILURE
See Also:
Constant Field Values

PKIFAILURE_INFO_DUPLICATE_CERT_REQ

public static final int PKIFAILURE_INFO_DUPLICATE_CERT_REQ
See Also:
Constant Field Values

PKISTATUS_INFO_ACCEPTED

public static final int PKISTATUS_INFO_ACCEPTED
Status codes

See Also:
Constant Field Values

PKISTATUS_INFO_GRANTED

public static final int PKISTATUS_INFO_GRANTED
See Also:
Constant Field Values

PKISTATUS_INFO_GRANTED_WITH_MODS

public static final int PKISTATUS_INFO_GRANTED_WITH_MODS
See Also:
Constant Field Values

PKISTATUS_INFO_REJECTION

public static final int PKISTATUS_INFO_REJECTION
See Also:
Constant Field Values

PKISTATUS_INFO_WAITING

public static final int PKISTATUS_INFO_WAITING
See Also:
Constant Field Values

PKISTATUS_INFO_REVOCATION_WARNING

public static final int PKISTATUS_INFO_REVOCATION_WARNING
See Also:
Constant Field Values

PKISTATUS_INFO_REVOCATION_NOTIFICATION

public static final int PKISTATUS_INFO_REVOCATION_NOTIFICATION
See Also:
Constant Field Values

PKISTATUS_INFO_KEY_UPDATE_WARNING

public static final int PKISTATUS_INFO_KEY_UPDATE_WARNING
See Also:
Constant Field Values

PKI_TRANS_TYPE_IR

public static final int PKI_TRANS_TYPE_IR
Транзакция типа Initialization

See Also:
Constant Field Values

PKI_TRANS_TYPE_CR

public static final int PKI_TRANS_TYPE_CR
Транзакция типа Certification

See Also:
Constant Field Values

PKI_TRANS_TYPE_P10CR

public static final int PKI_TRANS_TYPE_P10CR
Транзакция типа PKCS #10 Cert.

See Also:
Constant Field Values

PKI_TRANS_TYPE_KUR

public static final int PKI_TRANS_TYPE_KUR
Транзакция типа Key Update

See Also:
Constant Field Values

PKI_TRANS_TYPE_KRR

public static final int PKI_TRANS_TYPE_KRR
Транзакция типа Key Recovery

See Also:
Constant Field Values

PKI_TRANS_TYPE_CCR

public static final int PKI_TRANS_TYPE_CCR
Транзакция типа Cross-Cert.

See Also:
Constant Field Values

PKI_TRANS_TYPE_GENM

public static final int PKI_TRANS_TYPE_GENM
Транзакция типа General Message

See Also:
Constant Field Values

PKI_TRANS_STATE_ACCEPT

public static final int PKI_TRANS_STATE_ACCEPT
Транзакция принята в обработку

See Also:
Constant Field Values

PKI_TRANS_STATE_WAIT_USER

public static final int PKI_TRANS_STATE_WAIT_USER
Транзакция обработана и ждет подтверждения пользователя

See Also:
Constant Field Values

PKI_TRANS_STATE_WAIT_ADMIN

public static final int PKI_TRANS_STATE_WAIT_ADMIN
Транзакция обработана и ждет подтверждения администратора

See Also:
Constant Field Values

PKI_TRANS_STATE_WAIT_TIME

public static final int PKI_TRANS_STATE_WAIT_TIME
Транзакция не обработана и ждет указанного времени начала обработки

See Also:
Constant Field Values

PKI_TRANS_STATE_ERROR

public static final int PKI_TRANS_STATE_ERROR
Транзакция не обработана в связи с ошибками

See Also:
Constant Field Values

ISSUING

public static final int ISSUING
Выпуск

See Also:
Constant Field Values

REVOCATION

public static final int REVOCATION
Отзыв

See Also:
Constant Field Values

UPDATING

public static final int UPDATING
Обновление

See Also:
Constant Field Values

CRYPTO_PRO_GOST

public static final java.lang.String CRYPTO_PRO_GOST
Алгоритм ГОСТ 34310 (Крипто Про)

See Also:
Constant Field Values

ECGOST34310

public static final java.lang.String ECGOST34310
Алгоритм ГОСТ 34310

See Also:
Constant Field Values

SHA1WITHRSA

public static final java.lang.String SHA1WITHRSA
Алгоритм RSA

See Also:
Constant Field Values

KZ_OID_GOST

public static final java.lang.String KZ_OID_GOST
Алгоритм ГОСТ 34310 (KZoid)

See Also:
Constant Field Values

CPD

public static final int CPD
Certification of Possession of Data

See Also:
Constant Field Values

VSD

public static final int VSD
Validation of Digitally Signed Documents

See Also:
Constant Field Values

VPKC

public static final int VPKC
Validation of Public Key Certificates

See Also:
Constant Field Values

CCPD

public static final int CCPD
Certification of Claim of Possession of Data

See Also:
Constant Field Values
Constructor Detail

LibraryWrapper

public LibraryWrapper()
Method Detail

calculateEndian

private static int calculateEndian()
Вычисление порядка представления байт

Returns:
Порядок представления байт

getEndianness

private static int getEndianness(java.lang.String result)

cpAcquireContext

protected static long cpAcquireContext(java.lang.String pszContainer,
                                       int dwFlags,
                                       long 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). 64 bit version

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

cpAcquireContext

protected static int cpAcquireContext(java.lang.String pszContainer,
                                      int dwFlags,
                                      int 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). 32 bit version

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

protected static int cpReleaseContext(long hProv,
                                      int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpReleaseContext

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

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

cpReleaseContext

protected static int cpReleaseContext(int hProv,
                                      int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpReleaseContext

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

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

cpSetProvParam

protected static int cpSetProvParam(long 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. 64 bit version

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

cpSetProvParam

protected static int cpSetProvParam(int 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 32 bit version

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

protected static int cpGetProvParamSize(long 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. 64 bit version

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

cpGetProvParamSize

protected static int cpGetProvParamSize(int 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. 32 bit version

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

cpSetKeyParam

protected static int cpSetKeyParam(long hProv,
                                   long 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. 64 bit version

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

cpSetKeyParam

protected static int cpSetKeyParam(int hProv,
                                   int 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. 32 bit version

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

protected static int cpGetKeyParamSize(long hProv,
                                       long 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. 64 bit version

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

cpGetKeyParamSize

protected static int cpGetKeyParamSize(int hProv,
                                       int 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. 32 bit version

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

cpGetKeyParamData

protected static byte[] cpGetKeyParamData(long hProv,
                                          long 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. 64 bit version

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

cpGetKeyParamData

protected static byte[] cpGetKeyParamData(int hProv,
                                          int 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. 32 bit version

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

cpDestroyKey

protected static int cpDestroyKey(long hProv,
                                  long hKey)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpDestroyKey

Purpose: Destroys the cryptographic key that is being referenced with the hKey parameter. 64 bit version

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

cpDestroyKey

protected static int cpDestroyKey(int hProv,
                                  int hKey)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpDestroyKey

Purpose: Destroys the cryptographic key that is being referenced with the hKey parameter. 32 bit version

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

cpExportKeySize

protected static int cpExportKeySize(long hProv,
                                     long hKey,
                                     long 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. 64 bit version

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

cpExportKeySize

protected static int cpExportKeySize(int hProv,
                                     int hKey,
                                     int 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. 32 bit version

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

protected static byte[] cpExportKeyData(long hProv,
                                        long hKey,
                                        long 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. 64 bit version

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

protected static byte[] cpExportKeyData(int hProv,
                                        int hKey,
                                        int 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. 32 bit version

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

cpExportKeyDataEx

protected static byte[] cpExportKeyDataEx(long hProv,
                                          long hKey,
                                          long hExpKey,
                                          int dwBlobType,
                                          int dwFlags,
                                          int dwSizeBlob)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpExportKeyDataEx

Purpose: Export cryptographic keys out of a CSP in a secure manner. 64 bit version

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
dwSizeBlob - Size for data
Returns:
Key blob data

cpExportKeyDataEx

protected static byte[] cpExportKeyDataEx(int hProv,
                                          int hKey,
                                          int hExpKey,
                                          int dwBlobType,
                                          int dwFlags,
                                          int dwSizeBlob)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpExportKeyDataEx

Purpose: Export cryptographic keys out of a CSP in a secure manner. 64 bit version

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
dwSizeBlob - Size for data
Returns:
Key blob data

cpExportKeyDataSecond

protected static byte[] cpExportKeyDataSecond(long hProv,
                                              long 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. 64 bit version

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

cpExportKeyDataSecond

protected static byte[] cpExportKeyDataSecond(int hProv,
                                              int 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. 32 bit version

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

cpGetUserKey

protected static long cpGetUserKey(long hProv,
                                   int dwKeySpec)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpGetUserKey

Purpose: Gets a handle to a permanent user key. 64 bit version

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

cpGetUserKey

protected static int cpGetUserKey(int hProv,
                                  int dwKeySpec)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpGetUserKey

Purpose: Gets a handle to a permanent user key. 32 bit version

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

cpImportKey

protected static long cpImportKey(long hProv,
                                  byte[] pbData,
                                  int dwDataLen,
                                  long hImpKey,
                                  int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpImportKey

Purpose: Import cryptographic keys. 64 bit version

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

cpImportKey

protected static int cpImportKey(int hProv,
                                 byte[] pbData,
                                 int dwDataLen,
                                 int hImpKey,
                                 int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpImportKey

Purpose: Import cryptographic keys. 32 bit version

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

cpImportKeySecond

protected static long cpImportKeySecond(long hProv,
                                        byte[] pbData,
                                        int dwDataLen,
                                        byte[] impKeyData,
                                        int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpImportKeySecond

Purpose: Import cryptographic keys. 64 bit version

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

cpImportKeySecond

protected static int cpImportKeySecond(int hProv,
                                       byte[] pbData,
                                       int dwDataLen,
                                       byte[] impKeyData,
                                       int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpImportKeySecond

Purpose: Import cryptographic keys. 32 bit version

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

protected static long cpCreateHash(long hProv,
                                   int algId,
                                   long hKey,
                                   int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpCreateHash

Purpose: initiate the hashing of a stream of data. 64 bit version

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

cpCreateHash

protected static int cpCreateHash(int hProv,
                                  int algId,
                                  int hKey,
                                  int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpCreateHash

Purpose: initiate the hashing of a stream of data. 32 bit version

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

protected static int cpDestroyHash(long hProv,
                                   long hHash)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpDestroyHash

Purpose: Destroy the hash object. 64 bit version

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

cpDestroyHash

protected static int cpDestroyHash(int hProv,
                                   int hHash)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpDestroyHash

Purpose: Destroy the hash object. 32 bit version

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

cpGetHashParamSize

protected static int cpGetHashParamSize(long hProv,
                                        long 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. 64 bit version

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

cpGetHashParamSize

protected static int cpGetHashParamSize(int hProv,
                                        int 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. 32 bit version

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

cpGetHashParamData

protected static byte[] cpGetHashParamData(long hProv,
                                           long 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. 64 bit version

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

cpGetHashParamData

protected static byte[] cpGetHashParamData(int hProv,
                                           int 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. 32 bit version

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

cpHashData

protected static int cpHashData(long hProv,
                                long 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. 64 bit version

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

cpHashData

protected static int cpHashData(int hProv,
                                int 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. 32 bit version

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

protected static int cpSignHashSize(long hProv,
                                    long 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. 64 bit version

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

cpSignHashSize

protected static int cpSignHashSize(int hProv,
                                    int 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. 32 bit version

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

protected static byte[] cpSignHashData(long hProv,
                                       long 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. 64 bit version

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

protected static byte[] cpSignHashData(int hProv,
                                       int 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. 32 bit version

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

cpSignHashDataSecond

protected static byte[] cpSignHashDataSecond(long hProv,
                                             long hHash,
                                             int dwKeySpec,
                                             java.lang.String sDescription,
                                             int dwFlags,
                                             int size)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpSignHashDataSecond

Purpose: Create a digital signature from a hash. 64 bit version

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

cpSignHashDataSecond

protected static byte[] cpSignHashDataSecond(int hProv,
                                             int hHash,
                                             int dwKeySpec,
                                             java.lang.String sDescription,
                                             int dwFlags,
                                             int size)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpSignHashDataSecond

Purpose: Create a digital signature from a hash. 32 bit version

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

protected static int cpVerifySignature(long hProv,
                                       long hHash,
                                       byte[] pbSignature,
                                       int dwSigLen,
                                       long 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. 64 bit version

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

cpVerifySignature

protected static int cpVerifySignature(int hProv,
                                       int hHash,
                                       byte[] pbSignature,
                                       int dwSigLen,
                                       int 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. 32 bit version

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

protected static long cpDeriveKey(long hProv,
                                  int algId,
                                  long hHash,
                                  int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpDeriveKey

Purpose: Derive cryptographic keys from base data. 64 bit version

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

cpDeriveKey

protected static int cpDeriveKey(int hProv,
                                 int algId,
                                 int hHash,
                                 int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpDeriveKey

Purpose: Derive cryptographic keys from base data. 32 bit version

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

cpDuplicateKey

protected static long cpDuplicateKey(long hProv,
                                     long hKey,
                                     int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpDuplicateKey

Purpose: CPDuplicateKey. 64 bit version

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

cpDuplicateKey

protected static int cpDuplicateKey(int hProv,
                                    int hKey,
                                    int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpDuplicateKey

Purpose: CPDuplicateKey. 32 bit version

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

cpGenRandom

protected static byte[] cpGenRandom(long hProv,
                                    int dwLen)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpGenRandom

Purpose: Used to fill a buffer with random bytes. 64 bit version

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

cpGenRandom

protected static byte[] cpGenRandom(int hProv,
                                    int dwLen)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpGenRandom

Purpose: Used to fill a buffer with random bytes. 32 bit version

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

protected static long cpGenKey(long hProv,
                               int algId,
                               int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpGenKey

Purpose: Generate cryptographic keys. 64 bit version

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

cpGenKey

protected static int cpGenKey(int hProv,
                              int algId,
                              int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpGenKey

Purpose: Generate cryptographic keys. 32 bit version

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

cpDecrypt

protected static byte[] cpDecrypt(long hProv,
                                  long hKey,
                                  long hHash,
                                  int bFinal,
                                  int dwFlags,
                                  byte[] pbData,
                                  int pdwDataLen)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpDecrypt

Purpose: Decrypt data. 64 bit version

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

cpDecrypt

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

Purpose: Decrypt data. 32 bit version

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

protected static byte[] cpEncrypt(long hProv,
                                  long hKey,
                                  long hHash,
                                  int bFinal,
                                  int dwFlags,
                                  byte[] pbData,
                                  int pdwDataLen,
                                  int dwBufLen)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpEncrypt

Purpose: Encrypt data. 64 bit version

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

cpEncrypt

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

Purpose: Encrypt data. 32 bit version

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

protected static long cpDuplicateHash(long hProv,
                                      long hHash,
                                      int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpDuplicateHash

Purpose: Duplicate Hash. 64 bit version

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

cpDuplicateHash

protected static int cpDuplicateHash(int hProv,
                                     int hHash,
                                     int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpDuplicateHash

Purpose: Duplicate Hash. 32 bit version

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

cpHashSessionKey

protected static int cpHashSessionKey(long hProv,
                                      long hHash,
                                      long hKey,
                                      int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpHashSessionKey

Purpose: Compute the cryptograghic hash on a key object. 64 bit version

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)

cpHashSessionKey

protected static int cpHashSessionKey(int hProv,
                                      int hHash,
                                      int hKey,
                                      int dwFlags)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpHashSessionKey

Purpose: Compute the cryptograghic hash on a key object. 32 bit version

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

protected static int cpSetHashParam(long hProv,
                                    long 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. 64 bit version

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

cpSetHashParam

protected static int cpSetHashParam(int hProv,
                                    int 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. 32 bit version

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

protected 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,
                                                  long hProv)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpCreateProfile

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

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

cpCreateProfile

protected 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,
                                                  int hProv)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpCreateProfile

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

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

cpCreateUrl

protected 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,
                                              long hProv)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpCreateUrl

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

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

cpCreateUrl

protected 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,
                                              int hProv)
In C/C++: Java_kz_gamma_tumarcsp_LibraryWrapper_cpCreateUrl

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

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

cpUrlToNewUrl

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

Purpose: Изменение данных в URL. 64 bit version

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

cpUrlToNewUrl

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

Purpose: Изменение данных в URL. 32 bit version

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

cpGetProvParamByte

protected static byte[] cpGetProvParamByte(long 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. 64 bit version

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

cpGetProvParamByte

protected static byte[] cpGetProvParamByte(int 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. 32 bit version

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

cpGetTumarCspBuild

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

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

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

cpGetTumarCspBit

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

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

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

cpGetDataFromUrl

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

Purpose: Извлечение данных из URL. 64 bit version

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

cpGetDataFromUrl

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

Purpose: Извлечение данных из URL. 32 bit version

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

initialize

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

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


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