Example usage for org.bouncycastle.bcpg S2K getIterationCount

List of usage examples for org.bouncycastle.bcpg S2K getIterationCount

Introduction

In this page you can find the example usage for org.bouncycastle.bcpg S2K getIterationCount.

Prototype

public long getIterationCount() 

Source Link

Document

Gets the actual (expanded) iteration count.

Usage

From source file:org.sufficientlysecure.keychain.pgp.ComparableS2K.java

License:Open Source License

public ComparableS2K(int encryptionAlgorithm, S2K s2k) {
    this.encryptionAlgorithm = encryptionAlgorithm;
    this.s2kType = s2k.getType();
    this.s2kHashAlgo = s2k.getHashAlgorithm();
    this.s2kItCount = s2k.getIterationCount();
    this.s2kIV = s2k.getIV();
}

From source file:org.sufficientlysecure.keychain.pgp.ParcelableS2K.java

License:Open Source License

public static ParcelableS2K fromS2K(int encryptionAlgorithm, S2K s2k) {
    return new AutoValue_ParcelableS2K(encryptionAlgorithm, s2k.getType(), s2k.getHashAlgorithm(),
            s2k.getIterationCount(), s2k.getIV());
}