Modifier and Type | Class and Description |
---|---|
class |
PrivateKey
Wraps a PKCS#11 PrivateKey object
|
class |
PublicKey
Wraps a PKCS#11 PublicKey object
|
class |
RSAPrivateKey
Wraps a PKCS#11 RSAPrivateKey object
|
class |
RSAPublicKey
Wraps a PKCS#11 RSAPublicKey object
|
class |
SecretKey
Wraps a PKCS#11 SecretKey object
|
Modifier and Type | Method and Description |
---|---|
Key |
Session.deriveKey(Mechanism mechanism,
Key baseKey,
java.util.ArrayList<CryptokiAttribute> template)
Performs a Key Derivation
Calls C_DeriveKey
|
Key |
Session.generateKey(Mechanism mech,
java.util.ArrayList<CryptokiAttribute> attList)
Generate a key
Calls C_GenerateKey
|
Key[] |
Session.generateKeyPair(Mechanism mech,
java.util.ArrayList<CryptokiAttribute> attListPub,
java.util.ArrayList<CryptokiAttribute> attListPri)
Generate a key pair
Calls C_GenerateKeyPair
|
Key |
Session.unwrapKey(Mechanism mech,
Key unwrappingKey,
byte[] wrappedKey,
java.util.ArrayList<CryptokiAttribute> attList)
Unwraps a key
Calls C_UnwrapKey
|
Modifier and Type | Method and Description |
---|---|
int |
Session.decryptInit(Mechanism mech,
Key key)
Inits an Decrypt operation
Calls C_DecryptInit
|
Key |
Session.deriveKey(Mechanism mechanism,
Key baseKey,
java.util.ArrayList<CryptokiAttribute> template)
Performs a Key Derivation
Calls C_DeriveKey
|
byte[] |
Session.digestEncryptUpdate(byte[] data,
Key key)
Update a DigestEncrypt operation
Calls C_DigestEncryptUpdate
|
void |
Session.digestKey(Key key)
Digests a Key
Calls C_DigestKey
|
int |
Session.encryptInit(Mechanism mech,
Key key)
Inits an Encrypt operation
Calls C_EncryptInit
|
int |
Session.setOperationState(byte[] data,
Key encKey,
Key autKey)
Sets Operation State
Calls C_SetOperationState
|
int |
Session.signInit(Mechanism mech,
Key key)
Inits a Signature operation
Calls C_SignInit
|
int |
Session.signRecoverInit(Mechanism mech,
Key key)
Inits a Sign Recoveroperation
Calls SignRecoverInit
|
Key |
Session.unwrapKey(Mechanism mech,
Key unwrappingKey,
byte[] wrappedKey,
java.util.ArrayList<CryptokiAttribute> attList)
Unwraps a key
Calls C_UnwrapKey
|
int |
Session.verifyInit(Mechanism mech,
Key key)
Inits a Verify operation
Calls C_VerifyInit
|
int |
Session.verifyRecoverInit(Mechanism mech,
Key key)
Inistializes a VerifyRecoverInit operation
Calls C_VerifyRecoverInit
|
byte[] |
Session.wrapKey(Mechanism mech,
Key wrappingKey,
Key keyToWrap)
Wraps a key
Calls C_WrapKey
|