| Package | Description |
|---|---|
| iaik.pkcs.pkcs11 | |
| iaik.pkcs.pkcs11.objects | |
| iaik.pkcs.pkcs11.parameters | |
| iaik.pkcs.pkcs11.wrapper |
| Modifier and Type | Method and Description |
|---|---|
static Mechanism |
Mechanism.get(long pkcs11MechanismCode)
Gets the mechanism specified by the given mechanism code.
|
Mechanism[] |
Token.getMechanismList()
Get the list of mechanisms that this token supports.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Session.decryptInit(Mechanism mechanism,
Key key)
Initializes a new decryption operation.
|
Key |
Session.deriveKey(Mechanism mechanism,
Key baseKey,
Key template)
Derives a new key from a specified base key using the given mechanism.
|
void |
Session.digestInit(Mechanism mechanism)
Initializes a new digesting operation.
|
int |
Session.digestSingle(Mechanism mechanism,
byte[] in,
int inOfs,
int inLen,
byte[] digest,
int digestOfs,
int digestLen)
This method digests data in a single part.
|
void |
Session.encryptInit(Mechanism mechanism,
Key key)
Initializes a new encryption operation.
|
PKCS11Object |
Session.generateKey(Mechanism mechanism,
PKCS11Object template)
Generate a new secret key or a set of domain parameters.
|
KeyPair |
Session.generateKeyPair(Mechanism mechanism,
PKCS11Object publicKeyTemplate,
PKCS11Object privateKeyTemplate)
Generate a new public key - private key key-pair and use the set
attributes of the template objects for setting the attributes of the new
public key and private key objects.
|
MechanismInfo |
Token.getMechanismInfo(Mechanism mechanism)
Get more information about one supported mechanism.
|
void |
Session.signInit(Mechanism mechanism,
Key key)
Initializes a new signing operation.
|
void |
Session.signRecoverInit(Mechanism mechanism,
Key key)
Initializes a new signing operation for signing with recovery.
|
Key |
Session.unwrapKey(Mechanism mechanism,
Key unwrappingKey,
byte[] wrappedKey,
PKCS11Object keyTemplate)
Unwraps (decrypts) the given encrypted key with the unwrapping key using
the given mechanism.
|
void |
Session.verifyInit(Mechanism mechanism,
Key key)
Initializes a new verification operation.
|
void |
Session.verifyRecoverInit(Mechanism mechanism,
Key key)
Initializes a new verification operation for verification with data
recovery.
|
byte[] |
Session.wrapKey(Mechanism mechanism,
Key wrappingKey,
Key key)
Wraps (encrypts) the given key with the wrapping key using the given
mechanism.
|
| Modifier and Type | Method and Description |
|---|---|
Mechanism |
MechanismAttribute.getMechanism()
Get the long value of this attribute.
|
Mechanism[] |
MechanismArrayAttribute.getMechanismAttributeArrayValue()
Get the mechanism attribute array value of this attribute as Mechanism[].
|
| Modifier and Type | Method and Description |
|---|---|
void |
MechanismAttribute.setMechanism(Mechanism mechanism)
Set the mechanism value of this attribute.
|
void |
MechanismArrayAttribute.setMechanismAttributeArrayValue(Mechanism[] value)
Set the attributes of this mechanism attribute array by specifying a
Mechanism[].
|
| Constructor and Description |
|---|
RSAPkcsOaepParameters(Mechanism hashAlgorithm,
long maskGenerationFunction,
long source,
byte[] sourceData)
Deprecated.
|
RSAPkcsPssParameters(Mechanism hashAlg,
long mgf,
long saltLength)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
Functions.getHashAlgName(Mechanism hashMechanism) |
Copyright © 2020. All rights reserved.