01: package org.bouncycastle.crypto.params;
02:
03: import org.bouncycastle.crypto.DerivationParameters;
04:
05: /**
06: * parameters for mask derivation functions.
07: */
08: public class MGFParameters implements DerivationParameters {
09: byte[] seed;
10:
11: public MGFParameters(byte[] seed) {
12: this (seed, 0, seed.length);
13: }
14:
15: public MGFParameters(byte[] seed, int off, int len) {
16: this .seed = new byte[len];
17: System.arraycopy(seed, off, this .seed, 0, len);
18: }
19:
20: public byte[] getSeed() {
21: return seed;
22: }
23: }
|