01: package org.bouncycastle.crypto.params;
02:
03: import org.bouncycastle.crypto.CipherParameters;
04:
05: /**
06: * parameters for using an integrated cipher in stream mode.
07: */
08: public class IESParameters implements CipherParameters {
09: private byte[] derivation;
10: private byte[] encoding;
11: private int macKeySize;
12:
13: /**
14: * @param derivation the derivation parameter for the KDF function.
15: * @param encoding the encoding parameter for the KDF function.
16: * @param macKeySize the size of the MAC key (in bits).
17: */
18: public IESParameters(byte[] derivation, byte[] encoding,
19: int macKeySize) {
20: this .derivation = derivation;
21: this .encoding = encoding;
22: this .macKeySize = macKeySize;
23: }
24:
25: public byte[] getDerivationV() {
26: return derivation;
27: }
28:
29: public byte[] getEncodingV() {
30: return encoding;
31: }
32:
33: public int getMacKeySize() {
34: return macKeySize;
35: }
36: }
|