List of usage examples for org.bouncycastle.bcpg S2K getHashAlgorithm
public int getHashAlgorithm()
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()); }