Example usage for org.bouncycastle.crypto.params ISO18033KDFParameters ISO18033KDFParameters

List of usage examples for org.bouncycastle.crypto.params ISO18033KDFParameters ISO18033KDFParameters

Introduction

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

Prototype

public ISO18033KDFParameters(byte[] seed) 

Source Link

Usage

From source file:edu.biu.scapi.primitives.kdf.bc.BcKdfISO18033.java

License:Open Source License

/**
 * Generates the bc related parameters of type DerivationParameters
 * @param shared the input key //www.  java 2 s  .co  m
 * @param iv
 */
private DerivationParameters generateParameters(byte[] shared, byte[] iv) {

    if (iv == null) {//iv is not provided

        return new ISO18033KDFParameters(shared);
    } else { //iv is provided. Passes to the KDFParameters
        return new KDFParameters(shared, iv);
    }

}