| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.bouncycastle.crypto.generators.MGF1BytesGeneratorConstructor Summary | |
| |
Method Summary | |
int |
|
Digest |
|
void |
|
public MGF1BytesGenerator(Digest digest)
- Parameters:
digest- the digest to be used as the source of generated bytes
public int generateBytes(byte[] out,
int outOff,
int len)
throws DataLengthException,
IllegalArgumentExceptionfill len bytes of the output buffer with bytes generated from the derivation function.
- Specified by:
- generateBytes in interface DerivationFunction
- Throws:
DataLengthException- if the out buffer is too small.
public Digest getDigest()
return the underlying digest.
- Specified by:
- getDigest in interface DerivationFunction