01: package org.bouncycastle.crypto.params;
02:
03: import org.bouncycastle.crypto.DerivationParameters;
04:
05: /**
06: * parameters for Key derivation functions for IEEE P1363a
07: */
08: public class KDFParameters implements DerivationParameters {
09: byte[] iv;
10: byte[] shared;
11:
12: public KDFParameters(byte[] shared, byte[] iv) {
13: this .shared = shared;
14: this .iv = iv;
15: }
16:
17: public byte[] getSharedSecret() {
18: return shared;
19: }
20:
21: public byte[] getIV() {
22: return iv;
23: }
24: }
|