Java 类org.bouncycastle.openpgp.operator.PBEKeyEncryptionMethodGenerator 实例源码

项目:jpgpj    文件:Encryptor.java   
/**
 * Builds a PublicKeyKeyEncryptionMethodGenerator
 * for the specified key.
 */
protected PBEKeyEncryptionMethodGenerator buildSymmetricKeyEncryptor()
throws PGPException {
    if (log.isLoggable(Level.INFO))
        log.info("using symmetric encryption with " +
            keyDerivationAlgorithm + " hash, work factor " +
            keyDerivationWorkFactor);

    int algo = keyDerivationAlgorithm.ordinal();
    return new BcPBEKeyEncryptionMethodGenerator(
        symmetricPassphrase.toCharArray(),
        new BcPGPDigestCalculatorProvider().get(algo),
        keyDerivationWorkFactor);
}
项目:CryptMeme    文件:BcPBEKeyEncryptionMethodGenerator.java   
/**
 * Provide a user defined source of randomness.
 *
 * @param random  the secure random to be used.
 * @return  the current generator.
 */
public PBEKeyEncryptionMethodGenerator setSecureRandom(SecureRandom random)
{
    super.setSecureRandom(random);

    return this;
}
项目:CryptMeme    文件:JcePBEKeyEncryptionMethodGenerator.java   
/**
 * Provide a user defined source of randomness.
 *
 * @param random  the secure random to be used.
 * @return  the current generator.
 */
public PBEKeyEncryptionMethodGenerator setSecureRandom(SecureRandom random)
{
    super.setSecureRandom(random);

    return this;
}
项目:irma_future_id    文件:BcPBEKeyEncryptionMethodGenerator.java   
/**
 * Provide a user defined source of randomness.
 *
 * @param random  the secure random to be used.
 * @return  the current generator.
 */
public PBEKeyEncryptionMethodGenerator setSecureRandom(SecureRandom random)
{
    super.setSecureRandom(random);

    return this;
}
项目:irma_future_id    文件:JcePBEKeyEncryptionMethodGenerator.java   
/**
 * Provide a user defined source of randomness.
 *
 * @param random  the secure random to be used.
 * @return  the current generator.
 */
public PBEKeyEncryptionMethodGenerator setSecureRandom(SecureRandom random)
{
    super.setSecureRandom(random);

    return this;
}
项目:bc-java    文件:BcPBEKeyEncryptionMethodGenerator.java   
/**
 * Provide a user defined source of randomness.
 *
 * @param random  the secure random to be used.
 * @return  the current generator.
 */
public PBEKeyEncryptionMethodGenerator setSecureRandom(SecureRandom random)
{
    super.setSecureRandom(random);

    return this;
}
项目:bc-java    文件:JcePBEKeyEncryptionMethodGenerator.java   
/**
 * Provide a user defined source of randomness.
 *
 * @param random  the secure random to be used.
 * @return  the current generator.
 */
public PBEKeyEncryptionMethodGenerator setSecureRandom(SecureRandom random)
{
    super.setSecureRandom(random);

    return this;
}
项目:gwt-crypto    文件:BcPBEKeyEncryptionMethodGenerator.java   
public PBEKeyEncryptionMethodGenerator setSecureRandom(SecureRandom random)
{
    super.setSecureRandom(random);

    return this;
}