| Package | Description |
|---|---|
| com.safenetinc.jcprov |
Provides access to the API functions, and general structure/class definitions.
|
| Modifier and Type | Method and Description |
|---|---|
static CK_RV |
CryptokiEx.C_DecryptFinal(CK_SESSION_HANDLE hSession,
CK_MECHANISM mech,
byte[] lastPart,
LongRef lastPartLen) |
static CK_RV |
Cryptoki.C_DecryptInit(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism,
CK_OBJECT_HANDLE hKey)
Initialise a decryption operation.
|
static CK_RV |
CryptokiEx.C_DecryptInit(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism,
CK_OBJECT_HANDLE hKey) |
static CK_RV |
CryptokiEx.C_DecryptUpdate(CK_SESSION_HANDLE hSession,
CK_MECHANISM mech,
byte[] encryptedPart,
long encryptedPartLen,
byte[] part,
LongRef partLen) |
static CK_RV |
Cryptoki.C_DeriveKey(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism,
CK_OBJECT_HANDLE hBaseKey,
CK_ATTRIBUTE[] template,
long attributeCount,
CK_OBJECT_HANDLE hKey)
Derive a key from a base key, creating a new key object.
|
static CK_RV |
CryptokiEx.C_DeriveKey(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism,
CK_OBJECT_HANDLE hBaseKey,
CK_ATTRIBUTE[] template,
long attributeCount,
CK_OBJECT_HANDLE hKey) |
static CK_RV |
Cryptoki.C_DigestInit(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism)
Initialise a message-digesting operation.
|
static CK_RV |
CryptokiEx.C_DigestInit(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism) |
static CK_RV |
CryptokiEx.C_EncryptFinal(CK_SESSION_HANDLE hSession,
CK_MECHANISM mech,
byte[] lastEncryptedPart,
LongRef lastEncryptedPartLen) |
static CK_RV |
Cryptoki.C_EncryptInit(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism,
CK_OBJECT_HANDLE hKey)
Initialise an encryption operation.
|
static CK_RV |
CryptokiEx.C_EncryptInit(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism,
CK_OBJECT_HANDLE hKey) |
static CK_RV |
CryptokiEx.C_EncryptUpdate(CK_SESSION_HANDLE hSession,
CK_MECHANISM mech,
byte[] part,
long partLen,
byte[] encryptedPart,
LongRef encryptedPartLen) |
static CK_RV |
Cryptoki.C_GenerateKey(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism,
CK_ATTRIBUTE[] template,
long attributeCount,
CK_OBJECT_HANDLE hKey)
Generate a secret key, creating a new key object.
|
static CK_RV |
CryptokiEx.C_GenerateKey(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism,
CK_ATTRIBUTE[] template,
long attributeCount,
CK_OBJECT_HANDLE hKey) |
static CK_RV |
Cryptoki.C_GenerateKeyPair(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism,
CK_ATTRIBUTE[] publicKeyTemplate,
long publicKeyAttributeCount,
CK_ATTRIBUTE[] privateKeyTemplate,
long privateKeyAttributeCount,
CK_OBJECT_HANDLE hPublicKey,
CK_OBJECT_HANDLE hPrivateKey)
Generate a public-key/private-key pair, creating new key objects.
|
static CK_RV |
CryptokiEx.C_GenerateKeyPair(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism,
CK_ATTRIBUTE[] publicKeyTemplate,
long publicKeyAttributeCount,
CK_ATTRIBUTE[] privateKeyTemplate,
long privateKeyAttributeCount,
CK_OBJECT_HANDLE hPublicKey,
CK_OBJECT_HANDLE hPrivateKey) |
static CK_RV |
Cryptoki.C_SignInit(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism,
CK_OBJECT_HANDLE hKey)
Initialise a signature (private key encryption) operation, where the
signature is (will be) an appendix to the data, and plaintext cannot be
recovered from the signature.
|
static CK_RV |
CryptokiEx.C_SignInit(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism,
CK_OBJECT_HANDLE hKey) |
static CK_RV |
Cryptoki.C_SignRecoverInit(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism,
CK_OBJECT_HANDLE hKey)
C_SignRecoverInit initializes a signature operation, where
the data can be recovered from the signature.
|
static CK_RV |
CryptokiEx.C_SignRecoverInit(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism,
CK_OBJECT_HANDLE hKey) |
static CK_RV |
Cryptoki.C_UnwrapKey(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism,
CK_OBJECT_HANDLE hUnwrappingKey,
byte[] wrappedKey,
long wrappedKeyLen,
CK_ATTRIBUTE[] template,
long attributeCount,
CK_OBJECT_HANDLE hKey)
Unwraps (decrypts) a wrapped key, creating a new key object.
|
static CK_RV |
CryptokiEx.C_UnwrapKey(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism,
CK_OBJECT_HANDLE hUnwrappingKey,
byte[] wrappedKey,
long wrappedKeyLen,
CK_ATTRIBUTE[] template,
long attributeCount,
CK_OBJECT_HANDLE hKey) |
static CK_RV |
Cryptoki.C_VerifyInit(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism,
CK_OBJECT_HANDLE hKey)
Initialise a verification operation, where the signature is an appendix
to the data, and plaintext cannot cannot be recovered from the signature
(e.g.
|
static CK_RV |
CryptokiEx.C_VerifyInit(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism,
CK_OBJECT_HANDLE hKey) |
static CK_RV |
Cryptoki.C_VerifyRecoverInit(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism,
CK_OBJECT_HANDLE hKey)
Initialise a signature verification operation, where the data is
recovered from the signature.
|
static CK_RV |
CryptokiEx.C_VerifyRecoverInit(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism,
CK_OBJECT_HANDLE hKey) |
static CK_RV |
Cryptoki.C_WrapKey(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism,
CK_OBJECT_HANDLE hWrappingKey,
CK_OBJECT_HANDLE hKey,
byte[] wrappedKey,
LongRef wrappedKeyLen)
Wrap (i.e., encrypts) a key.
|
static CK_RV |
CryptokiEx.C_WrapKey(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism,
CK_OBJECT_HANDLE hWrappingKey,
CK_OBJECT_HANDLE hKey,
byte[] wrappedKey,
LongRef wrappedKeyLen) |
static CK_RV |
Cryptoki.CA_DeriveKeyAndWrap(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism,
CK_OBJECT_HANDLE hBaseKey,
CK_ATTRIBUTE[] template,
long attributeCount,
CK_MECHANISM mechanismWrap,
CK_OBJECT_HANDLE hWrappingKey,
byte[] wrappedKey,
LongRef wrappedKeyLen)
Derive a key from a base key, return the key bytes.
|
static CK_RV |
CryptokiEx.CA_DeriveKeyAndWrap(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism,
CK_OBJECT_HANDLE hBaseKey,
CK_ATTRIBUTE[] template,
long attributeCount,
CK_MECHANISM mechanismWrap,
CK_OBJECT_HANDLE hWrappingKey,
byte[] wrappedKey,
LongRef wrappedKeyLen) |
static CK_RV |
Cryptoki.CA_SIMMultiSign(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism,
long authSubsetCount,
long authForm,
int[] authSecretSizes,
byte[][] authSecretList,
long blobLen,
byte[] blob,
long dataCount,
int[] dataLens,
byte[][] datas,
LongRef[] signatureLens,
byte[][] signatures)
Perform a SIMMultiSign (SKS version)
|
static CK_RV |
CryptokiEx.CA_SIMMultiSign(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism,
long authSubsetCount,
long authForm,
int[] authSecretSizes,
byte[][] authSecretList,
long blobLen,
byte[] blob,
long dataCount,
int[] dataLens,
byte[][] datas,
LongRef[] signatureLens,
byte[][] signatures)
Perform an SKS SIMInsert and multiple signatures in one API call.
|
Copyright (c) 2021 SafeNet. All rights reserved.