Example usage for org.bouncycastle.crypto.params MGFParameters getSeed

List of usage examples for org.bouncycastle.crypto.params MGFParameters getSeed

Introduction

In this page you can find the example usage for org.bouncycastle.crypto.params MGFParameters getSeed.

Prototype

public byte[] getSeed() 

Source Link

Usage

From source file:org.ethereum.crypto.MGF1BytesGeneratorExt.java

License:Open Source License

public void init(DerivationParameters param) {
    if (!(param instanceof MGFParameters)) {
        throw new IllegalArgumentException("MGF parameters required for MGF1Generator");
    } else {/*from  w  w  w  .ja va2s. co m*/
        MGFParameters p = (MGFParameters) param;
        this.seed = p.getSeed();
    }
}