
com.gantzgulch.tools.crypto.GGCipher Maven / Gradle / Ivy
package com.gantzgulch.tools.crypto;
import java.io.InputStream;
import java.io.OutputStream;
import java.security.GeneralSecurityException;
import java.security.Key;
import javax.crypto.Cipher;
public interface GGCipher {
String getAlgorithm();
GGKeySpec getKeySpec();
GGIvNonceSpec getIvNonceSpec();
void encrypt(Key key, InputStream input, OutputStream output, byte[] ivNonce);
void decrypt(Key key, InputStream input, OutputStream output, byte[] ivNonce);
byte[] encrypt(Key key, byte[] input, byte[] ivNonce);
byte[] decrypt(Key key, byte[] input, byte[] ivNonce);
Cipher createCipher(int opMode, Key key, byte[] ivNonce) throws GeneralSecurityException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy