Example usage for org.bouncycastle.bcpg S2K getHashAlgorithm

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

Introduction

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

Prototype

public int getHashAlgorithm() 

Source Link

Document

Gets the HashAlgorithmTags hash algorithm for this S2K.

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());
}