Package com.helixframework.crypto.aead
Class StreamingAeadCrypto
java.lang.Object
com.helixframework.crypto.aead.StreamingAeadCrypto
Streaming AEAD crypto client.
-
Method Summary
Modifier and TypeMethodDescriptionvoidDecrypts a file and writes to new file.voidDecrypts a file and writes to new file with associated data.voidDecrypts a file and writes to new file with associated data.voidEncrypts file and writes to new file.voidEncrypts file and writes to a new file with associated data.voidEncrypts file and writes to a new file with associated data.voidencrypt(ReadableByteChannel input, WritableByteChannel output) Encrypts a byte channel and writes to a new byte channel.voidencrypt(ReadableByteChannel input, WritableByteChannel output, byte[] associatedData) Encrypts a byte channel and writes to a new byte channel with associated data.voidencrypt(ReadableByteChannel input, WritableByteChannel output, Map<String, Object> associatedData) Encrypts a byte channel and writes to a new byte channel with associated data.
-
Method Details
-
encrypt
Encrypts file and writes to new file.- Parameters:
input- input fileoutput- output file- Throws:
GeneralSecurityException- if exception occurs during encryptionIOException- if file access error occurs
-
encrypt
public void encrypt(File input, File output, Map<String, Object> associatedData) throws GeneralSecurityException, IOExceptionEncrypts file and writes to a new file with associated data.- Parameters:
input- input fileoutput- output fileassociatedData- plaintext associated data- Throws:
GeneralSecurityException- if exception occurs during encryptionIOException- if file access error occurs
-
encrypt
public void encrypt(File input, File output, byte[] associatedData) throws GeneralSecurityException, IOException Encrypts file and writes to a new file with associated data.- Parameters:
input- input fileoutput- output fileassociatedData- plaintext associated data- Throws:
GeneralSecurityException- if exception occurs during encryptionIOException- if file access error occurs
-
encrypt
public void encrypt(ReadableByteChannel input, WritableByteChannel output) throws GeneralSecurityException, IOException Encrypts a byte channel and writes to a new byte channel.- Parameters:
input- input channeloutput- output channel- Throws:
GeneralSecurityException- if exception occurs during encryptionIOException- if channel access error occurs
-
encrypt
public void encrypt(ReadableByteChannel input, WritableByteChannel output, Map<String, Object> associatedData) throws GeneralSecurityException, IOExceptionEncrypts a byte channel and writes to a new byte channel with associated data.- Parameters:
input- input channeloutput- output channelassociatedData- plaintext associated data- Throws:
GeneralSecurityException- if exception occurs during encryptionIOException- if channel access error occurs
-
encrypt
public void encrypt(ReadableByteChannel input, WritableByteChannel output, byte[] associatedData) throws GeneralSecurityException, IOException Encrypts a byte channel and writes to a new byte channel with associated data.- Parameters:
input- input channeloutput- output channelassociatedData- plaintext associated data- Throws:
GeneralSecurityException- if exception occurs during encryptionIOException- if channel access error occurs
-
decrypt
Decrypts a file and writes to new file.- Parameters:
input- input fileoutput- output file- Throws:
GeneralSecurityException- if exception occurs during encryptionIOException- if file access error occurs
-
decrypt
public void decrypt(File input, File output, Map<String, Object> associatedData) throws GeneralSecurityException, IOExceptionDecrypts a file and writes to new file with associated data.- Parameters:
input- input fileoutput- output fileassociatedData- plaintext associated data- Throws:
GeneralSecurityException- if exception occurs during encryptionIOException- if file access error occurs
-
decrypt
public void decrypt(File input, File output, byte[] associatedData) throws GeneralSecurityException, IOException Decrypts a file and writes to new file with associated data.- Parameters:
input- input fileoutput- output fileassociatedData- plaintext associated data- Throws:
GeneralSecurityException- if exception occurs during encryptionIOException- if file access error occurs
-