- All Superinterfaces:
EncryptionAlgorithmEngine
- All Known Implementing Classes:
AESEngineNoPadding,ConcatenatingAESEngine
Encryption algorithm with AES engine
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]encryptBytes(byte[] data, byte[] key, byte[] iv) encryptStream(InputStream data, byte[] key, byte[] iv) Methods inherited from interface org.sejda.sambox.encryption.EncryptionAlgorithmEngine
encryptBytes, encryptStream
-
Method Details
-
encryptStream
- Parameters:
data-key-iv-- Returns:
- a stream encrypted with the given key and initialization vector
-
encryptBytes
byte[] encryptBytes(byte[] data, byte[] key, byte[] iv) - Parameters:
data-key-iv-- Returns:
- the byte array encrypted with the given key and initialization vector
-