| Package | Description |
|---|---|
| org.xipki.pkcs11.wrapper |
| Modifier and Type | Method and Description |
|---|---|
int |
PKCS11Token.decrypt(Mechanism mechanism,
long keyHandle,
byte[] in,
byte[] out)
Decrypts the given data with the key and mechanism.
|
int |
PKCS11Token.decrypt(Mechanism mechanism,
long keyHandle,
byte[] in,
int inOfs,
int inLen,
byte[] out,
int outOfs,
int outLen)
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.
|
int |
Session.decryptSingle(Mechanism mechanism,
long keyHandle,
byte[] in,
byte[] out) |
int |
Session.decryptSingle(Mechanism mechanism,
long keyHandle,
byte[] in,
int inOfs,
int inLen,
byte[] out,
int outOfs,
int outLen) |
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[] in)
Digests the given data with the mechanism.
|
byte[] |
PKCS11Token.digest(Mechanism mechanism,
byte[] in,
int inOfs,
int inLen)
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.
|
int |
Session.digestSingle(Mechanism mechanism,
byte[] in,
byte[] out) |
int |
Session.digestSingle(Mechanism mechanism,
byte[] in,
int inOfs,
int inLen,
byte[] out,
int outOfs,
int outLen) |
int |
PKCS11Token.encrypt(Mechanism mechanism,
long keyHandle,
byte[] in,
byte[] out)
Encrypts the given data with the key and mechanism.
|
int |
PKCS11Token.encrypt(Mechanism mechanism,
long keyHandle,
byte[] in,
int inOfs,
int inLen,
byte[] out,
int outOfs,
int outLen)
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.
|
int |
Session.encryptSingle(Mechanism mechanism,
long keyHandle,
byte[] in,
byte[] out) |
int |
Session.encryptSingle(Mechanism mechanism,
long keyHandle,
byte[] in,
int inOfs,
int inLen,
byte[] out,
int outOfs,
int outLen) |
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.
|
byte[] |
PKCS11Token.sign(Mechanism mechanism,
long keyHandle,
byte[] in)
Signs the given data with the key and mechanism.
|
byte[] |
PKCS11Token.sign(Mechanism mechanism,
long keyHandle,
byte[] in,
int inOfs,
int inLen)
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.
|
int |
PKCS11Token.signRecover(Mechanism mechanism,
long keyHandle,
byte[] in,
byte[] out)
Sign-recovers the given data with the key and mechanism.
|
int |
PKCS11Token.signRecover(Mechanism mechanism,
long keyHandle,
byte[] in,
int inOfs,
int inLen,
byte[] out,
int outOfs,
int outLen)
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.
|
int |
Session.signRecoverSingle(Mechanism mechanism,
long keyHandle,
byte[] in,
byte[] out) |
int |
Session.signRecoverSingle(Mechanism mechanism,
long keyHandle,
byte[] in,
int inOfs,
int inLen,
byte[] out,
int outOfs,
int outLen) |
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.
|
int |
PKCS11Token.verifyRecover(Mechanism mechanism,
long keyHandle,
byte[] in,
byte[] out)
Verifies the given data with the key and mechanism.
|
int |
PKCS11Token.verifyRecover(Mechanism mechanism,
long keyHandle,
byte[] in,
int inOfs,
int inLen,
byte[] out,
int outOfs,
int outLen)
Verifies 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.
|
int |
Session.verifyRecoverSingle(Mechanism mechanism,
long keyHandle,
byte[] in,
byte[] out) |
int |
Session.verifyRecoverSingle(Mechanism mechanism,
long keyHandle,
byte[] in,
int inOfs,
int inLen,
byte[] out,
int outOfs,
int outLen) |
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.