|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkz.gamma.tumarcsp.LibraryWrapper
public class LibraryWrapper
Класс для вызова 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 |
|---|
protected static int libraryBit
public static final int PP_LAST_ERROR
public static final int PP_CNT_KEYS_COUNT
public static final int PP_ENUMPROFILES
public static final int PP_ENUM_KEYSTORAGE
public static final int PP_ENUM_SIGN_KEY_ALG
public static final int PP_ENUM_EXCH_KEY_ALG
public static final int PP_VERSION
public static final int PP_ENUM_LICENSES
public static final int PP_ENUM_CNT_PRIV_KEYS
public static final int CRYPT_VERIFYCONTEXT
public static final int KP_CERTIFICATE
public static final int HP_HASHVAL
public static final int AT_KEYEXCHANGE
public static final int AT_SIGNATURE
public static final int CRYPT_FIRST
public static final int CRYPT_OLD_TUM_KEYSET
public static final int CRYPT_NEWKEYSET
public static final int CRYPT_NEWKEYSETEX
public static final int CRYPT_NEWKEYSET_OLD
public static final int CRYPT_EXPORTABLE
public static final int KP_USER_KEY
public static final int PUBLICKEYBLOB
public static java.lang.String LIBRARY_NAME
public static final int PP_CHANGE_PASSWORD
public static final int KP_CERTIFICATE_CA
public static final int KP_CERTIFICATE_CHAIN
public static final int ZERO
public static final int CRYPT_DELETEKEYSET
public static final int PP_ENUMALGS_EX
public static final int PP_ENUMALGS
public static final int PP_CNT_ENTER_BY_SN
public static final int CRYPT_SILENT
public static final int KP_ALGID
public static final int PP_CONTAINER
public static final int URL_NAME
public static final int URL_DEV
public static final int URL_USER
public static final int URL_PASS
public static final int URL_PARAM
public static final int URL_CONT
public static final int URL_ALG_EXCH
public static final int URL_ALG_SIGN
public static final int URL_SN
public static final int URL_SN_SIZE
public static final int PP_DEL_PROFILE
public static final int KEY_STATE_ACTIVE
public static final int KEY_STATE_NEW
public static final java.lang.Number PV_TABLE
public static final int SUN_CPU_ENDIAN_LITTLE
public static final int SUN_CPU_ENDIAN_BIG
public static final int SUN_CPU_ENDIAN
public static final int KEY_ALG_TYPE_DH_EC_RSA
public static final int KEY_ALG_TYPE_DH
public static final int KEY_ALG_TYPE_EC
public static final int KEY_ALG_TYPE_RSA
public static final int KEY_ALG_CODE
public static final int KEY_ALG_ID
public static final int KEY_ALG_SEC_BITS
public static final int KEY_ALG_PUB_BITS
public static final int KEY_ALG_OID
public static final int KEY_ALG_NAME
public static final int KEY_ALG_TYPE
public static final int KEY_ALG_MAX_LEVEL
public static final int KEY_ALG_ZERO_LEVEL
public static final int KEY_ALG_FIRST_LEVEL
public static final int KEY_ALG_SECOND_LEVEL
public static final int KEY_ALG_THIRD_LEVEL
public static final int KEY_ALG_FOURTH_LEVEL
public static final int DEFAULT_ALG_SIGN
public static final int DEFAULT_ALG_EXCH
public static final int ALG_RSA_1536_EXCH
public static final int PK_CREATETIME
public static final int PK_SZOID
public static final int PK_SERIALNUM
public static final int PK_PUBLICKEY
public static final int PK_CERTIFICATE
public static final int PK_KEYSTATE
public static final int PK_KEY_EXP_STATE
public static final int PK_KEY_ALGID
public static final int LICENSE_USER
public static final int LICENSE_NAME
public static final int LICENSE_CREATED
public static final int LICENSE_EXPIRES
public static final int LICENSE_LEVEL
public static final int CALG_CMP_KEY
public static final int ALG_SID_SHA_160
public static final int ALG_SID_SHA_256
public static final int CALG_MAC
public static final int CALG_SHA_160_HMAC
public static final int ALG_CLASS_DATA_ENCRYPT
public static final int ALG_TYPE_BLOCK
public static final int ALG_TYPE_STREAM
public static final int ALG_CLASS_HASH
public static final int ALG_TYPE_ANY
public static final int ALG_SID_TGR3411
public static final int ALG_SID_T3DES
public static final int ALG_SID_GOST
public static final int ALG_SID_TG28147
public static final int CALG_SHA_160
public static final int CALG_SHA_256
public static final int CALG_TGR3411
public static final int CALG_T3DES
public static final int CALG_GOST
public static final int CALG_TG28147
public static final int CALG_TG28147_IMIT
public static final int KP_CMP_FAIL
public static final int KP_CMP_CHECK_AFTER
public static final int KP_CMP_STATUS
public static final int KP_CMP_SERVER_WAIT
public static final int KP_CMP_ADD_KEY
public static final int KP_CMP_TYPE
public static final int KP_CMP_TRANS_ID
public static final int KP_CMP_SND_NONCE
public static final int KP_CMP_RCP_NONCE
public static final int KP_CMP_HASH_ALG
public static final int KP_CMP_MAC_ALG
public static final int KP_CMP_SND_KID
public static final int KP_CMP_SECRET
public static final int KP_CMP_EXP_KEY
public static final int KP_CMP_RCP_SUBJ
public static final int KP_CMP_GEN_OID
public static final int KP_CMP_GEN_VAL
public static final int KP_CMP_GEN_CNT
public static final int KP_CMP_SND_DN
public static final int KP_CMP_RCP_DN
public static final int KP_CMP_RR_REASON
public static final int KP_CUR_CRT_SECTION
public static final int KP_CRT_COUNT
public static final int KP_ENUM_CERT
public static final int KP_CMP_OTP
public static final int KP_CMP_CERTIFICATES
public static final int KP_CMP_CERTIFICATES_CA
public static final int KP_CMP_OVALID
public static final int KP_CMP_EXT
public static final int PKI_CMP_IR
public static final int PKI_CMP_IP
public static final int PKI_CMP_CR
public static final int PKI_CMP_CP
public static final int PKI_CMP_P10CR
public static final int PKI_CMP_POPDECC
public static final int PKI_CMP_POPDECR
public static final int PKI_CMP_KUR
public static final int PKI_CMP_KUP
public static final int PKI_CMP_KRR
public static final int PKI_CMP_KRP
public static final int PKI_CMP_RR
public static final int PKI_CMP_RP
public static final int PKI_CMP_CCR
public static final int PKI_CMP_CCP
public static final int PKI_CMP_CKUANN
public static final int PKI_CMP_CANN
public static final int PKI_CMP_RANN
public static final int PKI_CMP_CRLANN
public static final int PKI_CMP_PKI_CONF
public static final int PKI_CMP_NESTED
public static final int PKI_CMP_GENM
public static final int PKI_CMP_GENP
public static final int PKI_CMP_ERROR
public static final int PKI_CMP_CERT_CONF
public static final int PKI_CMP_PR
public static final int PKI_CMP_PP
public static final int SIMPLEBLOB
public static final int KP_KEY_SN
public static final int KP_OCSP_REP_STATUS
public static final int KP_OCSP_REP_TIME
public static final int KP_OCSP_REP_CRT_SN
public static final int KP_OCSP_REP_CRT_STATUS
public static final int KP_OCSP_REP_REV_TIME
public static final int KP_OCSP_REP_REV_REASON
public static final int KP_OCSP_REP_THIS_UPD
public static final int KP_OCSP_REP_NEXT_UPD
public static final int HP_PKCS7_BODY
public static final int HP_PKCS7_SIGN_COUNT
public static final int HP_PKCS7_CUR_SIGN
public static final int HP_PKCS9_CUR_OID
public static final int HP_PKCS9A_SIZE
public static final int HP_PKCS9A_DATA
public static final int HP_PKCS9U_SIZE
public static final int HP_PKCS9U_DATA
public static final int HP_PKCS7_DATA_SIZE
public static final int HP_PKCS7_DATA
public static final int HP_PKCS7_HASH_AID
public static final int HP_PKCS7_SI_HASH_AID
public static final int HP_PKCS7_SI_SIGN_AID
public static final int HP_PKCS7_SI_SN
public static final int HP_PKCS7_SI_DN
public static final int HP_PKCS7_CERTIFICATE
public static final int HP_PKCS7_CRT_COUNT
public static final int HP_PKCS7_ENUM_CERT
public static final int HP_TIME_STAMP_OID
public static final int HP_TIME_STAMP_CRT
public static final int HP_TIME_STAMP_REQ
public static final int HP_TSTAMP_BODY
public static final int HP_TSTAMP_STSTUS
public static final int HP_TSTAMP_HASH
public static final int HP_TSTAMP_POLICIE
public static final int HP_TSTAMP_TIME
public static final int HP_TSTAMP_SN
public static final int HP_TSTAMP_DN
public static final int HP_TSTAMP_NONCE
public static final int CRYPT_X509_FORMAT
public static final int CRYPT_NO_MATH_CACHE
public static final int CRYPT_ECDSA
public static final int CRYPT_SIGN_ASN1
public static final int CRYPT_SIGN_PKCS7
public static final int PKCS7_CRT_INCLUDE
public static final int PKCS7_PEM_ENCODING
public static final int PKCS7_BASE64_ENCODING
public static final int CRYPT_OBJECT_CRT
public static final int CRYPT_OBJECT_CRL
public static final int CRYPT_OBJECT_P10
public static final int CRYPT_OBJECT_CMP
public static final int CRYPT_OBJECT_REV
public static final int CRYPT_OBJECT_OCSP
public static final int CRYPT_OBJECT_TSP
public static final int KP_CRT_USAGE
public static final int KP_CRT_PURPOSES
public static final int KP_CRT_ENUM_POLICIES
public static final int KP_CRT_VFROM
public static final int KP_CRT_VTO
public static final int KP_CRT_ISSU_DN
public static final int KP_CRT_SUBJ_DN
public static final int CRT_KEYUSAGE_DIGSIGN
public static final int CRT_KEYUSAGE_NONREPU
public static final int CRT_KEYUSAGE_KEYENCH
public static final int CRT_KEYUSAGE_DATAENC
public static final int CRT_KEYUSAGE_KEYAGRM
public static final int CRT_KEYUSAGE_CERTSIG
public static final int CRT_KEYUSAGE_CRLSIGN
public static final int CRT_KEYUSAGE_ENCONLY
public static final int CRT_KEYUSAGE_DECONLY
public static final int CRT_PURPOSE_CA
public static final int CRT_PURPOSE_RA
public static final int CRT_PURPOSE_OCSP
public static final int CRT_PURPOSE_TSA
public static final int CRT_PURPOSE_DVCS
public static final int KP_PKCS7_DATA_SIZE
public static final int KP_PKCS7_DATA
public static final int PRIVATEKEYBLOB_PKCS8
public static final int PRIVATEKEYBLOB_PKCS12
public static final int PUBLICKEYBLOB_CERT
public static final int PUBLICKEYBLOB_REQ_P10
public static final int PUBLICKEYBLOB_REQ_P10_PEM
public static final int PUBLICKEYBLOB_REQ_P7
public static final int PUBLICKEYBLOB_REQ_P7_PEM
public static final int PUBLICKEYBLOB_SUBJ_KEY
public static final int PUBLICKEYBLOB_SUBJ_KEY_PARAM
public static final int PUBLICKEYBLOB_CMP
public static final int PUBLICKEYBLOB_CMP_B64
public static final int PUBLICKEYBLOB_OCSP
public static final int PUBLICKEYBLOB_OCSP_B64
public static final int PUBLICKEYBLOB_CRL
public static final int SIMPLEBLOB_P7
public static final int SIMPLEBLOB_P7_B64
public static final int CRYPT_P12_STD_EXPORT
public static final int CRYPT_P12_STD_EXPORT_S
public static final int CRYPT_CPRO_EXPORT
public static final int CRYPT_ECC_EXPORT
public static final int CRYPT_DEFAULT_MODE
public static final int CRYPT_KAZ_EXPORT
public static final int CRYPT_CMP_NO_IMP_CONF
public static final int CRYPT_USE_OCSP_LOCATOR
public static final int CRYPT_OLD_P10_FORMAT
public static final int EC_HASH_ALG_ID
public static final int EC_CRYPTO_PRO_HASH_ALG_ID
public static final int TUMAR_HASH_ALG_ID
public static final java.lang.String CMP_GENERAL_IT
public static final java.lang.String CMP_GENERAL_CRT_EXCH
public static final java.lang.String CMP_GENERAL_CRL
public static final java.lang.String CMP_GENERAL_PASS
public static final java.lang.String CMP_GENERAL_IMPL_CONF
public static final java.lang.String CMP_GENERAL_SRV_WAIT
public static final java.lang.String CMP_GENERAL_DEP_KEY
public static final java.lang.String CMP_GENERAL_GET_KEY
public static final java.lang.String CMP_GENERAL_DEL_KEY
public static final java.lang.String CMP_GENERAL_ADD_SECRET
public static final java.lang.String CMP_GENERAL_MOD_SECRET
public static final java.lang.String CMP_GENERAL_GET_SECRET
public static final java.lang.String CMP_GENERAL_DEL_SECRET
public static final java.lang.String CMP_GENERAL_TRANS_LIST
public static final java.lang.String CMP_GENERAL_GET_OPER_CA
public static final java.lang.String CMP_GENERAL_ADD_USER_DETAILS
public static final java.lang.String CMP_GENERAL_MOD_USER_DETAILS
public static final java.lang.String CMP_GENERAL_GET_USER_DETAILS
public static final java.lang.String OID_TRANSACTION_ID
public static final java.lang.String OID_PKCS9_TIMESTAMPATTR
public static final java.lang.String OID_PKCS9_LOCAL_KEY_ID
public static final java.lang.String OID_PKCS9_SIGNINGTIME
public static final int ALG_SID_RSA_1024
public static final int CRYPT_MODE_CBC
public static final int KP_MODE
public static final int PKCS5_PADDING
public static final int KP_PADDING
public static final int PKIFAILURE_INFO_BAD_ALG
public static final int PKIFAILURE_INFO_BAD_MESSAGE_CHECK
public static final int PKIFAILURE_INFO_BAD_REQUEST
public static final int PKIFAILURE_INFO_BAD_TIME
public static final int PKIFAILURE_INFO_BAD_CERT_ID
public static final int PKIFAILURE_INFO_BAD_DATA_FORMAT
public static final int PKIFAILURE_INFO_WRONG_AUTHORITY
public static final int PKIFAILURE_INFO_INCORRECT_DATA
public static final int PKIFAILURE_INFO_MISSING_TIME_STAMP
public static final int PKIFAILURE_INFO_BAD_POP
public static final int PKIFAILURE_INFO_CERT_REVOKED
public static final int PKIFAILURE_INFO_CERT_CONFIRMED
public static final int PKIFAILURE_INFO_WRONG_INTEGRITY
public static final int PKIFAILURE_INFO_BAD_RECIPIENT_NONCE
public static final int PKIFAILURE_INFO_TIME_NOT_AVAILABLE
public static final int PKIFAILURE_INFO_UNACCEPTED_POLICY
public static final int PKIFAILURE_INFO_UNACCEPTED_EXTENSION
public static final int PKIFAILURE_INFO_ADD_INFO_NOT_AVAILABLE
public static final int PKIFAILURE_INFO_BAD_SENDER_NONCE
public static final int PKIFAILURE_INFO_BAD_CERT_TEMPLATE
public static final int PKIFAILURE_INFO_SIGNER_NOT_TRUSTED
public static final int PKIFAILURE_INFO_TRANSACTION_ID_IN_USE
public static final int PKIFAILURE_INFO_UNSUPPORTED_VERSION
public static final int PKIFAILURE_INFO_NOT_AUTHORISED
public static final int PKIFAILURE_INFO_SYSTEM_UNAVAIL
public static final int PKIFAILURE_INFO_SYSTEM_FAILURE
public static final int PKIFAILURE_INFO_DUPLICATE_CERT_REQ
public static final int PKISTATUS_INFO_ACCEPTED
public static final int PKISTATUS_INFO_GRANTED
public static final int PKISTATUS_INFO_GRANTED_WITH_MODS
public static final int PKISTATUS_INFO_REJECTION
public static final int PKISTATUS_INFO_WAITING
public static final int PKISTATUS_INFO_REVOCATION_WARNING
public static final int PKISTATUS_INFO_REVOCATION_NOTIFICATION
public static final int PKISTATUS_INFO_KEY_UPDATE_WARNING
public static final int PKI_TRANS_TYPE_IR
public static final int PKI_TRANS_TYPE_CR
public static final int PKI_TRANS_TYPE_P10CR
public static final int PKI_TRANS_TYPE_KUR
public static final int PKI_TRANS_TYPE_KRR
public static final int PKI_TRANS_TYPE_CCR
public static final int PKI_TRANS_TYPE_GENM
public static final int PKI_TRANS_STATE_ACCEPT
public static final int PKI_TRANS_STATE_WAIT_USER
public static final int PKI_TRANS_STATE_WAIT_ADMIN
public static final int PKI_TRANS_STATE_WAIT_TIME
public static final int PKI_TRANS_STATE_ERROR
public static final int ISSUING
public static final int REVOCATION
public static final int UPDATING
public static final java.lang.String CRYPTO_PRO_GOST
public static final java.lang.String ECGOST34310
public static final java.lang.String SHA1WITHRSA
public static final java.lang.String KZ_OID_GOST
public static final int CPD
public static final int VSD
public static final int VPKC
public static final int CCPD
| Constructor Detail |
|---|
public LibraryWrapper()
| Method Detail |
|---|
private static int calculateEndian()
private static int getEndianness(java.lang.String result)
protected static long cpAcquireContext(java.lang.String pszContainer,
int dwFlags,
long pVTable)
pszContainer - Pointer to a string which is the identity of the logged on userdwFlags - Flags valuespVTable - Pointer to table of function pointers
protected static int cpAcquireContext(java.lang.String pszContainer,
int dwFlags,
int pVTable)
pszContainer - Pointer to a string which is the identity of the logged on userdwFlags - Flags valuespVTable - Pointer to table of function pointers
protected static int cpReleaseContext(long hProv,
int dwFlags)
hProv - Handle to a CSPdwFlags - Flags values
protected static int cpReleaseContext(int hProv,
int dwFlags)
hProv - Handle to a CSPdwFlags - Flags values
protected static int cpSetProvParam(long hProv,
int dwParam,
byte[] pbData,
int dwFlags)
hProv - Handle to a CSPdwParam - Parameter numberpbData - Pointer to datadwFlags - Flags values
protected static int cpSetProvParam(int hProv,
int dwParam,
byte[] pbData,
int dwFlags)
hProv - Handle to a CSPdwParam - Parameter numberpbData - Pointer to datadwFlags - Flags values
protected static int cpGetProvParamSize(long hProv,
int dwParam,
int dwFlags)
hProv - Handle to a CSPdwParam - Parameter numberdwFlags - Flags values
protected static int cpGetProvParamSize(int hProv,
int dwParam,
int dwFlags)
hProv - Handle to a CSPdwParam - Parameter numberdwFlags - Flags values
protected static int cpSetKeyParam(long hProv,
long hKey,
int dwParam,
byte[] pbData,
int dwFlags)
hProv - Handle to a CSPhKey - Handle to a keydwParam - Parameter numberpbData - Pointer to datadwFlags - Flags values
protected static int cpSetKeyParam(int hProv,
int hKey,
int dwParam,
byte[] pbData,
int dwFlags)
hProv - Handle to a CSPhKey - Handle to a keydwParam - Parameter numberpbData - Pointer to datadwFlags - Flags values
protected static int cpGetKeyParamSize(long hProv,
long hKey,
int dwParam,
int dwFlags)
hProv - Handle to a CSPhKey - Handle to a keydwParam - Parameter numberdwFlags - Flags values
protected static int cpGetKeyParamSize(int hProv,
int hKey,
int dwParam,
int dwFlags)
hProv - Handle to a CSPhKey - Handle to a keydwParam - Parameter numberdwFlags - Flags values
protected static byte[] cpGetKeyParamData(long hProv,
long hKey,
int dwParam,
int dwFlags)
hProv - Handle to a CSPhKey - Handle to a keydwParam - Parameter numberdwFlags - Flags values
protected static byte[] cpGetKeyParamData(int hProv,
int hKey,
int dwParam,
int dwFlags)
hProv - Handle to a CSPhKey - Handle to a keydwParam - Parameter numberdwFlags - Flags values
protected static int cpDestroyKey(long hProv,
long hKey)
hProv - Handle to a CSPhKey - Handle to a key
protected static int cpDestroyKey(int hProv,
int hKey)
hProv - Handle to a CSPhKey - Handle to a key
protected static int cpExportKeySize(long hProv,
long hKey,
long hExpKey,
int dwBlobType,
int dwFlags)
hProv - Handle to a CSPhKey - Handle to the key to exporthExpKey - Handle to the exchange public key value of the destination userdwBlobType - Type of key blob to be exporteddwFlags - Flags values
protected static int cpExportKeySize(int hProv,
int hKey,
int hExpKey,
int dwBlobType,
int dwFlags)
hProv - Handle to a CSPhKey - Handle to the key to exporthExpKey - Handle to the exchange public key value of the destination userdwBlobType - Type of key blob to be exporteddwFlags - Flags values
protected static byte[] cpExportKeyData(long hProv,
long hKey,
long hExpKey,
int dwBlobType,
int dwFlags)
hProv - Handle to a CSPhKey - Handle to the key to exporthExpKey - Handle to the exchange public key value of the destination userdwBlobType - Type of key blob to be exporteddwFlags - Flags values
protected static byte[] cpExportKeyData(int hProv,
int hKey,
int hExpKey,
int dwBlobType,
int dwFlags)
hProv - Handle to a CSPhKey - Handle to the key to exporthExpKey - Handle to the exchange public key value of the destination userdwBlobType - Type of key blob to be exporteddwFlags - Flags values
protected static byte[] cpExportKeyDataEx(long hProv,
long hKey,
long hExpKey,
int dwBlobType,
int dwFlags,
int dwSizeBlob)
hProv - Handle to a CSPhKey - Handle to the key to exporthExpKey - Handle to the exchange public key value of the destination userdwBlobType - Type of key blob to be exporteddwFlags - Flags valuesdwSizeBlob - Size for data
protected static byte[] cpExportKeyDataEx(int hProv,
int hKey,
int hExpKey,
int dwBlobType,
int dwFlags,
int dwSizeBlob)
hProv - Handle to a CSPhKey - Handle to the key to exporthExpKey - Handle to the exchange public key value of the destination userdwBlobType - Type of key blob to be exporteddwFlags - Flags valuesdwSizeBlob - Size for data
protected static byte[] cpExportKeyDataSecond(long hProv,
long hKey,
byte[] pubKeyData,
int dwBlobType,
int dwFlags)
hProv - Handle to a CSPhKey - Handle to the key to exportpubKeyData - Export key data. For example, password to key containerdwBlobType - Type of key blob to be exporteddwFlags - Flags values
protected static byte[] cpExportKeyDataSecond(int hProv,
int hKey,
byte[] pubKeyData,
int dwBlobType,
int dwFlags)
hProv - Handle to a CSPhKey - Handle to the key to exportpubKeyData - Export key data. For example, password to key containerdwBlobType - Type of key blob to be exporteddwFlags - Flags values
protected static long cpGetUserKey(long hProv,
int dwKeySpec)
hProv - Handle to a CSPdwKeySpec - Specification of the key to retrieve
protected static int cpGetUserKey(int hProv,
int dwKeySpec)
hProv - Handle to a CSPdwKeySpec - Specification of the key to retrieve
protected static long cpImportKey(long hProv,
byte[] pbData,
int dwDataLen,
long hImpKey,
int dwFlags)
hProv - Handle to a CSPpbData - Key blob datadwDataLen - Length of the key blob datahImpKey - Handle to the exchange public key value ofdwFlags - Flags values
protected static int cpImportKey(int hProv,
byte[] pbData,
int dwDataLen,
int hImpKey,
int dwFlags)
hProv - Handle to a CSPpbData - Key blob datadwDataLen - Length of the key blob datahImpKey - Handle to the exchange public key value ofdwFlags - Flags values
protected static long cpImportKeySecond(long hProv,
byte[] pbData,
int dwDataLen,
byte[] impKeyData,
int dwFlags)
hProv - Handle to a CSPpbData - Key blob datadwDataLen - Length of the key blob dataimpKeyData - Import key data. For example, password to key containerdwFlags - Flags values
protected static int cpImportKeySecond(int hProv,
byte[] pbData,
int dwDataLen,
byte[] impKeyData,
int dwFlags)
hProv - Handle to a CSPpbData - Key blob datadwDataLen - Length of the key blob dataimpKeyData - Import key data. For example, password to key containerdwFlags - Flags values
protected static long cpCreateHash(long hProv,
int algId,
long hKey,
int dwFlags)
hProv - Handle to a CSPalgId - Algorithm identifier of the hash algorithm to be usedhKey - Optional key for MAC algorithmsdwFlags - Flags values
protected static int cpCreateHash(int hProv,
int algId,
int hKey,
int dwFlags)
hProv - Handle to a CSPalgId - Algorithm identifier of the hash algorithm to be usedhKey - Optional key for MAC algorithmsdwFlags - Flags values
protected static int cpDestroyHash(long hProv,
long hHash)
hProv - Handle to a CSPhHash - Handle to hash object
protected static int cpDestroyHash(int hProv,
int hHash)
hProv - Handle to a CSPhHash - Handle to hash object
protected static int cpGetHashParamSize(long hProv,
long hHash,
int dwParam,
int dwFlags)
hProv - Handle to a CSPhHash - Handle to a hashdwParam - Parameter numberdwFlags - Flags values
protected static int cpGetHashParamSize(int hProv,
int hHash,
int dwParam,
int dwFlags)
hProv - Handle to a CSPhHash - Handle to a hashdwParam - Parameter numberdwFlags - Flags values
protected static byte[] cpGetHashParamData(long hProv,
long hHash,
int dwParam,
int dwFlags)
hProv - Handle to a CSPhHash - Handle to a hashdwParam - Parameter numberdwFlags - Flags values
protected static byte[] cpGetHashParamData(int hProv,
int hHash,
int dwParam,
int dwFlags)
hProv - Handle to a CSPhHash - Handle to a hashdwParam - Parameter numberdwFlags - Flags values
protected static int cpHashData(long hProv,
long hHash,
byte[] pbData,
int dwDataLen,
int dwFlags)
hProv - Handle to a CSPhHash - Handle to hash objectpbData - Pointer to data to be hasheddwDataLen - Length of the data to be hasheddwFlags - Flags values
protected static int cpHashData(int hProv,
int hHash,
byte[] pbData,
int dwDataLen,
int dwFlags)
hProv - Handle to a CSPhHash - Handle to hash objectpbData - Pointer to data to be hasheddwDataLen - Length of the data to be hasheddwFlags - Flags values
protected static int cpSignHashSize(long hProv,
long hHash,
int dwKeySpec,
java.lang.String sDescription,
int dwFlags)
hProv - Handle to a CSPhHash - Handle to hash objectdwKeySpec - Algorithm identifier of the signature algorithm to be usedsDescription - Description of data to be signeddwFlags - Flags values
protected static int cpSignHashSize(int hProv,
int hHash,
int dwKeySpec,
java.lang.String sDescription,
int dwFlags)
hProv - Handle to a CSPhHash - Handle to hash objectdwKeySpec - Algorithm identifier of the signature algorithm to be usedsDescription - Description of data to be signeddwFlags - Flags values
protected static byte[] cpSignHashData(long hProv,
long hHash,
int dwKeySpec,
java.lang.String sDescription,
int dwFlags)
hProv - Handle to a CSPhHash - Handle to hash objectdwKeySpec - Specification of the keysDescription - Description of data to be signeddwFlags - Flags values
protected static byte[] cpSignHashData(int hProv,
int hHash,
int dwKeySpec,
java.lang.String sDescription,
int dwFlags)
hProv - Handle to a CSPhHash - Handle to hash objectdwKeySpec - Specification of the keysDescription - Description of data to be signeddwFlags - Flags values
protected static byte[] cpSignHashDataSecond(long hProv,
long hHash,
int dwKeySpec,
java.lang.String sDescription,
int dwFlags,
int size)
hProv - Handle to a CSPhHash - Handle to hash objectdwKeySpec - Specification of the keysDescription - Description of data to be signeddwFlags - Flags valuessize - Размер для подписи
protected static byte[] cpSignHashDataSecond(int hProv,
int hHash,
int dwKeySpec,
java.lang.String sDescription,
int dwFlags,
int size)
hProv - Handle to a CSPhHash - Handle to hash objectdwKeySpec - Specification of the keysDescription - Description of data to be signeddwFlags - Flags valuessize - Размер для подписи
protected static int cpVerifySignature(long hProv,
long hHash,
byte[] pbSignature,
int dwSigLen,
long hPubKey,
java.lang.String sDescription,
int dwFlags)
hProv - Handle to a CSPhHash - Handle to hash objectpbSignature - Pointer to signature datadwSigLen - Length of the signature datahPubKey - Handle to the public key for verifying the signaturesDescription - Description of data to be signeddwFlags - Flags values
protected static int cpVerifySignature(int hProv,
int hHash,
byte[] pbSignature,
int dwSigLen,
int hPubKey,
java.lang.String sDescription,
int dwFlags)
hProv - Handle to a CSPhHash - Handle to hash objectpbSignature - Pointer to signature datadwSigLen - Length of the signature datahPubKey - Handle to the public key for verifying the signaturesDescription - Description of data to be signeddwFlags - Flags values
protected static long cpDeriveKey(long hProv,
int algId,
long hHash,
int dwFlags)
hProv - Handle to a CSPalgId - Algorithm identifierhHash - Handle to hashdwFlags - Flags values
protected static int cpDeriveKey(int hProv,
int algId,
int hHash,
int dwFlags)
hProv - Handle to a CSPalgId - Algorithm identifierhHash - Handle to hashdwFlags - Flags values
protected static long cpDuplicateKey(long hProv,
long hKey,
int dwFlags)
hProv - Handle to a CSPhKey - Handle to a keydwFlags - Flags values
protected static int cpDuplicateKey(int hProv,
int hKey,
int dwFlags)
hProv - Handle to a CSPhKey - Handle to a keydwFlags - Flags values
protected static byte[] cpGenRandom(long hProv,
int dwLen)
hProv - Handle to the user identifcationdwLen - Number of bytes of random data requested
protected static byte[] cpGenRandom(int hProv,
int dwLen)
hProv - Handle to the user identifcationdwLen - Number of bytes of random data requested
protected static long cpGenKey(long hProv,
int algId,
int dwFlags)
hProv - Handle to a CSPalgId - Algorithm identifierdwFlags - Flags values
protected static int cpGenKey(int hProv,
int algId,
int dwFlags)
hProv - Handle to a CSPalgId - Algorithm identifierdwFlags - Flags values
protected static byte[] cpDecrypt(long hProv,
long hKey,
long hHash,
int bFinal,
int dwFlags,
byte[] pbData,
int pdwDataLen)
hProv - Handle to the CSP userhKey - Handle to the keyhHash - Optional handle to a hashbFinal - Boolean indicating if this is the final block of ciphertextdwFlags - Flags valuespbData - Data to be decryptedpdwDataLen - Pointer to the length of the data to be decrypted
protected static byte[] cpDecrypt(int hProv,
int hKey,
int hHash,
int bFinal,
int dwFlags,
byte[] pbData,
int pdwDataLen)
hProv - Handle to the CSP userhKey - Handle to the keyhHash - Optional handle to a hashbFinal - Boolean indicating if this is the final block of ciphertextdwFlags - Flags valuespbData - Data to be decryptedpdwDataLen - Pointer to the length of the data to be decrypted
protected static byte[] cpEncrypt(long hProv,
long hKey,
long hHash,
int bFinal,
int dwFlags,
byte[] pbData,
int pdwDataLen,
int dwBufLen)
hProv - Handle to the CSP userhKey - Handle to the keyhHash - Optional handle to a hashbFinal - Boolean indicating if this is the final block of plaintextdwFlags - Flags valuespbData - Data to be encryptedpdwDataLen - Pointer to the length of the data to be encrypteddwBufLen - Size of Data buffer
protected static byte[] cpEncrypt(int hProv,
int hKey,
int hHash,
int bFinal,
int dwFlags,
byte[] pbData,
int pdwDataLen,
int dwBufLen)
hProv - Handle to the CSP userhKey - Handle to the keyhHash - Optional handle to a hashbFinal - Boolean indicating if this is the final block of plaintextdwFlags - Flags valuespbData - Data to be encryptedpdwDataLen - Pointer to the length of the data to be encrypteddwBufLen - Size of Data buffer
protected static long cpDuplicateHash(long hProv,
long hHash,
int dwFlags)
hProv - Handle to a CSPhHash - Handle to a hashdwFlags - Flags values
protected static int cpDuplicateHash(int hProv,
int hHash,
int dwFlags)
hProv - Handle to a CSPhHash - Handle to a hashdwFlags - Flags values
protected static int cpHashSessionKey(long hProv,
long hHash,
long hKey,
int dwFlags)
hProv - Handle to the user identifcationhHash - Handle to hash objecthKey - Handle to a key objectdwFlags - Flags values
protected static int cpHashSessionKey(int hProv,
int hHash,
int hKey,
int dwFlags)
hProv - Handle to the user identifcationhHash - Handle to hash objecthKey - Handle to a key objectdwFlags - Flags values
protected static int cpSetHashParam(long hProv,
long hHash,
int dwParam,
byte[] pbData,
int dwFlags)
hProv - Handle to a CSPhHash - Handle to a hashdwParam - Parameter numberpbData - Pointer to datadwFlags - Flags values
protected static int cpSetHashParam(int hProv,
int hHash,
int dwParam,
byte[] pbData,
int dwFlags)
hProv - Handle to a CSPhHash - Handle to a hashdwParam - Parameter numberpbData - Pointer to datadwFlags - Flags values
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)
name - Наименование профайлаdev - Устройство храненияuser - Наименование ключевого контейнераpass - Пароль на ключевой контейнерparam - Параметр устройства храненияcont - Формат ключевого контейнераalg_exch - Алгоритм на ключевой обменalg_sign - Алгоритм на подписьhProv - Handle to a CSP
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)
name - Наименование профайлаdev - Устройство храненияuser - Наименование ключевого контейнераpass - Пароль на ключевой контейнерparam - Параметр устройства храненияcont - Формат ключевого контейнераalg_exch - Алгоритм на ключевой обменalg_sign - Алгоритм на подписьhProv - Handle to a CSP
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)
name - Наименование URLdev - Устройство храненияuser - Наименование ключевого контейнераpass - Пароль на ключевой контейнерparam - Параметр устройства храненияcont - Формат ключевого контейнераalg_exch - Алгоритм на ключевой обменalg_sign - Алгоритм на подписьhProv - Handle to a CSP
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)
name - Наименование URLdev - Устройство храненияuser - Наименование ключевого контейнераpass - Пароль на ключевой контейнерparam - Параметр устройства храненияcont - Формат ключевого контейнераalg_exch - Алгоритм на ключевой обменalg_sign - Алгоритм на подписьhProv - Handle to a CSP
protected static java.lang.String cpUrlToNewUrl(java.lang.String url,
java.lang.String param,
int type,
long hProv)
url - URLparam - Значение параметраtype - Тип параметра:
LibraryWrapper.URL_PASS - пароль;
LibraryWrapper.URL_SN - серийный номер.
hProv - Handle to a CSP
protected static java.lang.String cpUrlToNewUrl(java.lang.String url,
java.lang.String param,
int type,
int hProv)
url - URLparam - Значение параметраtype - Тип параметра:
LibraryWrapper.URL_PASS - пароль;
LibraryWrapper.URL_SN - серийный номер.
hProv - Handle to a CSP
protected static byte[] cpGetProvParamByte(long hProv,
int dwParam,
int dwFlags,
int dwField)
hProv - Handle to a CSPdwParam - Parameter numberdwFlags - Flags valuesdwField - Field
protected static byte[] cpGetProvParamByte(int hProv,
int dwParam,
int dwFlags,
int dwField)
hProv - Handle to a CSPdwParam - Parameter numberdwFlags - Flags valuesdwField - Field
protected static byte[] cpGetTumarCspBuild()
protected static int cpGetTumarCspBit()
protected static byte[] cpGetDataFromUrl(long hProv,
java.lang.String url,
int type)
hProv - Handle to a CSPurl - URLtype - Тип извлекаемых данных
protected static byte[] cpGetDataFromUrl(int hProv,
java.lang.String url,
int type)
hProv - Handle to a CSPurl - URLtype - Тип извлекаемых данных
protected static void initialize(java.lang.String name)
name - Наименование библиотеки. Например, "cptumar". Параметр используется только при загрузке библиотеки на Android.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||