JCECipherProvider
public interface CipherProvider
Modifier and Type | Method | Description |
---|---|---|
int |
decrypt(byte[] ciphertext,
int offset,
int length,
byte[] cleartext,
int outputOffset) |
Decrypt data - use only with Cipher that has been initialized with
CipherFactory.DECRYPT.
|
int |
encrypt(byte[] cleartext,
int offset,
int length,
byte[] ciphertext,
int outputOffset) |
Encrypt data - use only with Cipher that has been initialized with
CipherFactory.ENCRYPT.
|
int |
getEncryptionBlockSize() |
Returns the encryption block size used during creation of the encrypted database
|
int encrypt(byte[] cleartext, int offset, int length, byte[] ciphertext, int outputOffset) throws StandardException
cleartext
- the byte array containing the cleartextoffset
- encrypt from this byte offset in the cleartextlength
- encrypt this many bytes starting from offsetciphertext
- the byte array to store the ciphertextoutputOffset
- the offset into the ciphertext array the output
should go
If cleartext and ciphertext are the same array, caller must be careful
to not overwrite the cleartext before it is scrambled.StandardException
- Standard Derby Error Policyint decrypt(byte[] ciphertext, int offset, int length, byte[] cleartext, int outputOffset) throws StandardException
ciphertext
- the byte array containing the ciphertextoffset
- decrypt from this byte offset in the ciphertextlength
- decrypt this many bytes starting from offsetcleartext
- the byte array to store the cleartextoutputOffset
- the offset into the cleartext array the output
should go
If cleartext and ciphertext are the same array, caller must be careful
to not overwrite the ciphertext before it is un-scrambled.StandardException
- Standard Derby Error Policyint getEncryptionBlockSize()
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.