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

com.codeheadsystems.crypto.Decrypter Maven / Gradle / Ivy

There is a newer version: 1.0.3
Show newest version
package com.codeheadsystems.crypto;

import com.codeheadsystems.crypto.password.KeyParameterWrapper;
import com.codeheadsystems.crypto.password.SecretKeyExpiredException;

import org.bouncycastle.crypto.params.KeyParameter;

/**
 * BSD-Style License 2016
 */
public interface Decrypter {

    String decryptText(KeyParameterWrapper keyParameterWrapper, String encryptedText) throws CryptoException, SecretKeyExpiredException;

    String decryptText(KeyParameterWrapper keyParameterWrapper, byte[] encryptedBytes) throws CryptoException, SecretKeyExpiredException;

    byte[] decryptBytes(KeyParameterWrapper keyParameterWrapper, byte[] encryptedBytes) throws CryptoException, SecretKeyExpiredException;

    String decryptText(KeyParameter keyParameter, String encryptedText) throws CryptoException;

    String decryptText(KeyParameter keyParameter, byte[] encryptedBytes) throws CryptoException;

    byte[] decryptBytes(KeyParameter keyParameter, byte[] encryptedBytes) throws CryptoException;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy