All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.gantzgulch.tools.crypto.GGCipher Maven / Gradle / Ivy

There is a newer version: 1.0.4
Show newest version
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