| Modifier and Type | Class and Description |
|---|---|
| private class |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public SingleBlockEncryptorUsingSecureRandom | createBlockEncryptor(final AsymmetricKey
the key to be used in the encryptor. key, final T the parameter set for the encryptor. parameters)Implements org. |
| protected abstract AsymmetricBlockCipher | |
| protected static boolean |
| GuardedAsymmetricOperatorFactory | back to summary |
|---|---|
| pack-priv GuardedAsymmetricOperatorFactory() | |
| createBlockEncryptor | back to summary |
|---|---|
| public SingleBlockEncryptorUsingSecureRandom Implements org. Doc from org. Create a block encryptor for the passed in key and parameter set.
| |
| createCipher | back to summary |
|---|---|
| protected abstract AsymmetricBlockCipher createCipher(boolean forEncryption, AsymmetricKey key, T parameters, SecureRandom random) | |
| isRawEngine | back to summary |
|---|---|
| protected static boolean isRawEngine(AsymmetricBlockCipher engine) | |
| Modifier and Type | Field and Description |
|---|---|
| private AsymmetricBlockCipher | |
| private final AsymmetricKey | |
| private final T | |
| private final SecureRandom |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | encryptBlock(byte[]
array holding the data to be encrypted. bytes, int offset into bytes where the data starts. offSet, int the number of bytes of data in the bytes array. length)Implements org. |
| private AsymmetricBlockCipher | |
| public int | getInputSize()
Implements org. |
| public int | getOutputSize()
Implements org. |
| public T | getParameters()
Implements org. |
| public SingleBlockEncryptorUsingSecureRandom | withSecureRandom(SecureRandom
the SecureRandom to use. random)Implements org. |
| engine | back to summary |
|---|---|
| private AsymmetricBlockCipher engine | |
| key | back to summary |
|---|---|
| private final AsymmetricKey key | |
| parameters | back to summary |
|---|---|
| private final T parameters | |
| random | back to summary |
|---|---|
| private final SecureRandom random | |
| BlockEncryptor | back to summary |
|---|---|
| pack-priv BlockEncryptor(AsymmetricKey key, T parameters, SecureRandom random) | |
| encryptBlock | back to summary |
|---|---|
| public byte[] encryptBlock(byte[] bytes, int offSet, int length) throws PlainInputProcessingException Implements org. Doc from org. Encrypt a single block of data, returning the result.
| |
| getEngine | back to summary |
|---|---|
| private AsymmetricBlockCipher getEngine() | |
| getInputSize | back to summary |
|---|---|
| public int getInputSize() Implements org. Doc from org. Return the maximum size of input this cipher can consume.
| |
| getOutputSize | back to summary |
|---|---|
| public int getOutputSize() Implements org. Doc from org. Return the size of the output this cipher will produce.
| |
| getParameters | back to summary |
|---|---|
| public T getParameters() Implements org. Doc from org. Return the parameters for this single block cipher.
| |
| withSecureRandom | back to summary |
|---|---|
| public SingleBlockEncryptorUsingSecureRandom Implements org. Doc from org. Return a variant of this encryptor using the passed in random as its source of randomness.
| |