Java 类org.bouncycastle.crypto.params.IESParameters 实例源码

项目:ipack    文件:IESEngine.java   
/**
 * Initialise the encryptor.
 *
 * @param forEncryption whether or not this is encryption/decryption.
 * @param privParam     our private key parameters
 * @param pubParam      the recipient's/sender's public key parameters
 * @param param         encoding and derivation parameters.
 */
public void init(
    boolean forEncryption,
    CipherParameters privParam,
    CipherParameters pubParam,
    CipherParameters param)
{
    this.forEncryption = forEncryption;
    this.privParam = privParam;
    this.pubParam = pubParam;
    this.param = (IESParameters)param;
    this.V = new byte[0];
}
项目:ipack    文件:IESEngine.java   
/**
 * Initialise the encryptor.
 *
 * @param publicKey      the recipient's/sender's public key parameters
 * @param params         encoding and derivation parameters.
 * @param ephemeralKeyPairGenerator             the ephemeral key pair generator to use.
 */
public void init(AsymmetricKeyParameter publicKey, CipherParameters params, EphemeralKeyPairGenerator ephemeralKeyPairGenerator)
{
    this.forEncryption = true;
    this.pubParam = publicKey;
    this.param = (IESParameters)params;
    this.keyPairGenerator = ephemeralKeyPairGenerator;
}
项目:ipack    文件:IESEngine.java   
/**
 * Initialise the encryptor.
 *
 * @param privateKey      the recipient's private key.
 * @param params          encoding and derivation parameters.
 * @param publicKeyParser the parser for reading the ephemeral public key.
 */
public void init(AsymmetricKeyParameter privateKey, CipherParameters params, KeyParser publicKeyParser)
{
    this.forEncryption = false;
    this.privParam = privateKey;
    this.param = (IESParameters)params;
    this.keyParser = publicKeyParser;
}
项目:Direct-File-Downloader    文件:IESEngine.java   
/**
 * Initialise the encryptor.
 *
 * @param forEncryption whether or not this is encryption/decryption.
 * @param privParam our private key parameters
 * @param pubParam the recipient's/sender's public key parameters
 * @param param encoding and derivation parameters.
 */
public void init(
    boolean                     forEncryption,
    CipherParameters            privParam,
    CipherParameters            pubParam,
    CipherParameters            param)
{
    this.forEncryption = forEncryption;
    this.privParam = privParam;
    this.pubParam = pubParam;
    this.param = (IESParameters)param;
}
项目:gwt-crypto    文件:IESEngine.java   
private void extractParams(CipherParameters params)
{
    if (params instanceof ParametersWithIV)
    {
        this.IV = ((ParametersWithIV)params).getIV();
        this.param = (IESParameters)((ParametersWithIV)params).getParameters();
    }
    else
    {
        this.IV = null;
        this.param = (IESParameters)params;
    }
}
项目:Aki-SSL    文件:IESEngine.java   
private void extractParams(CipherParameters params)
{
    if (params instanceof ParametersWithIV)
    {
        this.IV = ((ParametersWithIV)params).getIV();
        this.param = (IESParameters)((ParametersWithIV)params).getParameters();
    }
    else
    {
        this.IV = null;
        this.param = (IESParameters)params;
    }
}
项目:TinyTravelTracker    文件:IESEngine.java   
private void extractParams(CipherParameters params)
{
    if (params instanceof ParametersWithIV)
    {
        this.IV = ((ParametersWithIV)params).getIV();
        this.param = (IESParameters)((ParametersWithIV)params).getParameters();
    }
    else
    {
        this.IV = null;
        this.param = (IESParameters)params;
    }
}
项目:AcademicTorrents-Downloader    文件:IESEngine.java   
/**
 * Initialise the encryptor.
 *
 * @param forEncryption whether or not this is encryption/decryption.
 * @param privParam our private key parameters
 * @param pubParam the recipient's/sender's public key parameters
 * @param param encoding and derivation parameters.
 */
public void init(
    boolean                     forEncryption,
    CipherParameters            privParam,
    CipherParameters            pubParam,
    CipherParameters            param)
{
    this.forEncryption = forEncryption;
    this.privParam = privParam;
    this.pubParam = pubParam;
    this.param = (IESParameters)param;
}
项目:CryptMeme    文件:IESEngine.java   
/**
 * Initialise the encryptor.
 *
 * @param forEncryption whether or not this is encryption/decryption.
 * @param privParam     our private key parameters
 * @param pubParam      the recipient's/sender's public key parameters
 * @param param         encoding and derivation parameters.
 */
public void init(
    boolean forEncryption,
    CipherParameters privParam,
    CipherParameters pubParam,
    CipherParameters param)
{
    this.forEncryption = forEncryption;
    this.privParam = privParam;
    this.pubParam = pubParam;
    this.param = (IESParameters)param;
    this.V = new byte[0];
}
项目:CryptMeme    文件:IESEngine.java   
/**
 * Initialise the encryptor.
 *
 * @param publicKey      the recipient's/sender's public key parameters
 * @param params         encoding and derivation parameters.
 * @param ephemeralKeyPairGenerator             the ephemeral key pair generator to use.
 */
public void init(AsymmetricKeyParameter publicKey, CipherParameters params, EphemeralKeyPairGenerator ephemeralKeyPairGenerator)
{
    this.forEncryption = true;
    this.pubParam = publicKey;
    this.param = (IESParameters)params;
    this.keyPairGenerator = ephemeralKeyPairGenerator;
}
项目:CryptMeme    文件:IESEngine.java   
/**
 * Initialise the encryptor.
 *
 * @param privateKey      the recipient's private key.
 * @param params          encoding and derivation parameters.
 * @param publicKeyParser the parser for reading the ephemeral public key.
 */
public void init(AsymmetricKeyParameter privateKey, CipherParameters params, KeyParser publicKeyParser)
{
    this.forEncryption = false;
    this.privParam = privateKey;
    this.param = (IESParameters)params;
    this.keyParser = publicKeyParser;
}
项目:irma_future_id    文件:IESEngine.java   
/**
 * Initialise the encryptor.
 *
 * @param forEncryption whether or not this is encryption/decryption.
 * @param privParam     our private key parameters
 * @param pubParam      the recipient's/sender's public key parameters
 * @param param         encoding and derivation parameters.
 */
public void init(
    boolean forEncryption,
    CipherParameters privParam,
    CipherParameters pubParam,
    CipherParameters param)
{
    this.forEncryption = forEncryption;
    this.privParam = privParam;
    this.pubParam = pubParam;
    this.param = (IESParameters)param;
    this.V = new byte[0];
}
项目:irma_future_id    文件:IESEngine.java   
/**
 * Initialise the encryptor.
 *
 * @param publicKey      the recipient's/sender's public key parameters
 * @param params         encoding and derivation parameters.
 * @param ephemeralKeyPairGenerator             the ephemeral key pair generator to use.
 */
public void init(AsymmetricKeyParameter publicKey, CipherParameters params, EphemeralKeyPairGenerator ephemeralKeyPairGenerator)
{
    this.forEncryption = true;
    this.pubParam = publicKey;
    this.param = (IESParameters)params;
    this.keyPairGenerator = ephemeralKeyPairGenerator;
}
项目:irma_future_id    文件:IESEngine.java   
/**
 * Initialise the encryptor.
 *
 * @param privateKey      the recipient's private key.
 * @param params          encoding and derivation parameters.
 * @param publicKeyParser the parser for reading the ephemeral public key.
 */
public void init(AsymmetricKeyParameter privateKey, CipherParameters params, KeyParser publicKeyParser)
{
    this.forEncryption = false;
    this.privParam = privateKey;
    this.param = (IESParameters)params;
    this.keyParser = publicKeyParser;
}
项目:bc-java    文件:IESEngine.java   
/**
 * Initialise the encryptor.
 *
 * @param forEncryption whether or not this is encryption/decryption.
 * @param privParam     our private key parameters
 * @param pubParam      the recipient's/sender's public key parameters
 * @param param         encoding and derivation parameters.
 */
public void init(
    boolean forEncryption,
    CipherParameters privParam,
    CipherParameters pubParam,
    CipherParameters param)
{
    this.forEncryption = forEncryption;
    this.privParam = privParam;
    this.pubParam = pubParam;
    this.param = (IESParameters)param;
    this.V = new byte[0];
}
项目:bc-java    文件:IESEngine.java   
/**
 * Initialise the encryptor.
 *
 * @param publicKey      the recipient's/sender's public key parameters
 * @param params         encoding and derivation parameters.
 * @param ephemeralKeyPairGenerator             the ephemeral key pair generator to use.
 */
public void init(AsymmetricKeyParameter publicKey, CipherParameters params, EphemeralKeyPairGenerator ephemeralKeyPairGenerator)
{
    this.forEncryption = true;
    this.pubParam = publicKey;
    this.param = (IESParameters)params;
    this.keyPairGenerator = ephemeralKeyPairGenerator;
}
项目:bc-java    文件:IESEngine.java   
/**
 * Initialise the encryptor.
 *
 * @param privateKey      the recipient's private key.
 * @param params          encoding and derivation parameters.
 * @param publicKeyParser the parser for reading the ephemeral public key.
 */
public void init(AsymmetricKeyParameter privateKey, CipherParameters params, KeyParser publicKeyParser)
{
    this.forEncryption = false;
    this.privParam = privateKey;
    this.param = (IESParameters)params;
    this.keyParser = publicKeyParser;
}