| Package | Description |
|---|---|
| org.xipki.pkcs11.wrapper |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
PKCS11Token.decrypt(Mechanism mechanism,
long keyHandle,
byte[] ciphertext)
Decrypts the given data with the key and mechanism.
|
int |
PKCS11Token.decrypt(OutputStream out,
Mechanism mechanism,
long keyHandle,
InputStream ciphertext)
This method can be used to decrypt large data.
|
void |
Session.decryptInit(Mechanism mechanism,
long keyHandle)
Initializes a new decryption operation.
|
byte[][] |
PKCS11Token.decryptMessages(Mechanism mechanism,
long keyHandle,
DecryptMessageBytesEntry[] entries)
Decrypts the given ciphertexts using the given mechanism and keys.
|
int[] |
PKCS11Token.decryptMessages(Mechanism mechanism,
long keyHandle,
DecryptMessageStreamEntry[] entries)
Decrypts the given ciphertexts using the given mechanism and key.
|
byte[] |
Session.decryptSingle(Mechanism mechanism,
long keyHandle,
byte[] ciphertext) |
long |
PKCS11Token.deriveKey(Mechanism mechanism,
long baseKeyHandle,
AttributeVector template)
Derives a new key from a specified base key using the given mechanism.
|
long |
Session.deriveKey(Mechanism mechanism,
long baseKeyHandle,
AttributeVector template)
Derives a new key from a specified base key using the given mechanism.
|
byte[] |
PKCS11Token.digest(Mechanism mechanism,
byte[] data)
Digests the given data with the mechanism.
|
byte[] |
PKCS11Token.digest(Mechanism mechanism,
InputStream data)
Digests the large data with the mechanism.
|
void |
Session.digestInit(Mechanism mechanism)
Initializes a new digesting operation.
|
byte[] |
PKCS11Token.digestKey(Mechanism mechanism,
long keyHandle)
Digests the given key with the mechanism.
|
byte[] |
Session.digestSingle(Mechanism mechanism,
byte[] data) |
byte[] |
PKCS11Token.encrypt(Mechanism mechanism,
long keyHandle,
byte[] plaintext)
Encrypts the given data with the key and mechanism.
|
int |
PKCS11Token.encrypt(OutputStream out,
Mechanism mechanism,
long keyHandle,
InputStream plaintext)
This method can be used to encrypt large data.
|
void |
Session.encryptInit(Mechanism mechanism,
long keyHandle)
Initializes a new encryption operation.
|
byte[][] |
PKCS11Token.encryptMessages(Mechanism mechanism,
long keyHandle,
EncryptMessageBytesEntry[] entries)
Encrypts the given messages using the given mechanism and key
|
int[] |
PKCS11Token.encryptMessages(Mechanism mechanism,
long keyHandle,
EncryptMessageStreamEntry[] entries)
Encrypts the given messages using the given mechanism and key.
|
byte[] |
Session.encryptSingle(Mechanism mechanism,
long keyHandle,
byte[] plaintext) |
long |
PKCS11Token.generateKey(Mechanism mechanism,
AttributeVector template)
Generate a new secret key or a set of domain parameters.
|
long |
Session.generateKey(Mechanism mechanism,
AttributeVector template)
Generate a new secret key or a set of domain parameters.
|
PKCS11KeyPair |
PKCS11Token.generateKeyPair(Mechanism mechanism,
KeyPairTemplate template)
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.
|
PKCS11KeyPair |
Session.generateKeyPair(Mechanism mechanism,
KeyPairTemplate template)
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.
|
void |
Session.messageDecryptInit(Mechanism mechanism,
long keyHandle)
Initializes a new message decryption operation.
|
void |
Session.messageEncryptInit(Mechanism mechanism,
long keyHandle)
Initializes a new message encryption operation.
|
void |
Session.messageSignInit(Mechanism mechanism,
long keyHandle) |
void |
Session.messageVerifyInit(Mechanism mechanism,
long keyHandle)
Initiates a message verification operation, preparing a session for one or
more verification operations (where the signature is an appendix to the data) that use the same
verification mechanism and verification key.
|
byte[] |
PKCS11Token.sign(Mechanism mechanism,
long keyHandle,
byte[] data)
Signs the given data with the key and mechanism.
|
byte[] |
PKCS11Token.sign(Mechanism mechanism,
long keyHandle,
InputStream data)
This method can be used to sign large data.
|
void |
Session.signInit(Mechanism mechanism,
long keyHandle)
Initializes a new signing operation.
|
byte[][] |
PKCS11Token.signMessages(Mechanism mechanism,
long keyHandle,
SignMessageBytesEntry[] entries)
Signs the given messages using the given mechanism and key.
|
byte[][] |
PKCS11Token.signMessages(Mechanism mechanism,
long keyHandle,
SignMessageStreamEntry[] entries)
Signs the given messages using the given mechanism and key.
|
byte[] |
PKCS11Token.signRecover(Mechanism mechanism,
long keyHandle,
byte[] data)
Sign-recovers the given data with the key and mechanism.
|
void |
Session.signRecoverInit(Mechanism mechanism,
long keyHandle)
Initializes a new signing operation for signing with recovery.
|
byte[] |
Session.signRecoverSingle(Mechanism mechanism,
long keyHandle,
byte[] data) |
byte[] |
Session.signSingle(Mechanism mechanism,
long keyHandle,
byte[] data) |
long |
PKCS11Token.unwrapKey(Mechanism mechanism,
long unwrappingKeyHandle,
byte[] wrappedKey,
AttributeVector keyTemplate)
Unwraps (decrypts) the given encrypted key with the unwrapping key using the given mechanism.
|
long |
Session.unwrapKey(Mechanism mechanism,
long unwrappingKeyHandle,
byte[] wrappedKey,
AttributeVector keyTemplate)
Unwraps (decrypts) the given encrypted key with the unwrapping key using the given mechanism.
|
boolean |
PKCS11Token.verify(Mechanism mechanism,
long keyHandle,
byte[] data,
byte[] signature)
Verifies the given signature against the given data with the key and mechanism.
|
boolean |
PKCS11Token.verify(Mechanism mechanism,
long keyHandle,
InputStream data,
byte[] signature)
This method can be used to verify large data.
|
void |
Session.verifyInit(Mechanism mechanism,
long keyHandle)
Initializes a new verification operation.
|
boolean[] |
PKCS11Token.verifyMessages(Mechanism mechanism,
long keyHandle,
VerifyMessageBytesEntry[] entries) |
boolean[] |
PKCS11Token.verifyMessages(Mechanism mechanism,
long keyHandle,
VerifyMessageStreamEntry[] entries)
Verify the signatures over given messages using the given mechanism and key.
|
byte[] |
PKCS11Token.verifyRecover(Mechanism mechanism,
long keyHandle,
byte[] data)
Verify-recovers the given data with the key and mechanism.
|
void |
Session.verifyRecoverInit(Mechanism mechanism,
long keyHandle)
Initializes a new verification operation for verification with data recovery.
|
byte[] |
Session.verifyRecoverSingle(Mechanism mechanism,
long keyHandle,
byte[] data) |
void |
Session.verifySingle(Mechanism mechanism,
long keyHandle,
byte[] data,
byte[] signature) |
byte[] |
PKCS11Token.wrapKey(Mechanism mechanism,
long wrappingKeyHandle,
long keyHandle)
Wraps (encrypts) the given key with the wrapping key using the given mechanism.
|
byte[] |
Session.wrapKey(Mechanism mechanism,
long wrappingKeyHandle,
long keyHandle)
Wraps (encrypts) the given key with the wrapping key using the given mechanism.
|
Copyright © 2023. All rights reserved.