Example usage for org.bouncycastle.bcpg S2K getIV

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

Introduction

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

Prototype

public byte[] getIV() 

Source Link

Document

Gets the iv/salt to use for the key generation.

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